NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/47547: hexdump typo
>Number: 47547
>Category: bin
>Synopsis: hexdump typo
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 09 02:45:00 +0000 2013
>Originator: William Ahern
>Release: NetBSD 5.1.2
>Organization:
>Environment:
NetBSD 5.1.2 NetBSD 5.1.2 (GENERIC) #0: Thu Feb 2 12:12:28 UTC 2012
builds%b7.netbsd.org@localhost:/home/builds/ab/netbsd-5-1-2-RELEASE/amd64/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/amd64/compile/GENERIC
amd64
>Description:
usr.bin/hexdump/conv.c contains a 20-year-old typo, near line 108 in trunk. The
list[] array spells the ASCII label "dc1" as "dcl". Note the letter "l" versus
number "1".
I've reported this bug to FreeBSD, OpenBSD, and Debian (which repackages BSD
hexdump). Apple appears to have quietly fixed their copy in OS X.
I discovered this bug while testing my own implementation at
http://25thandclement.com/~william/projects/hexdump.c.html
>How-To-Repeat:
hexdump -e '16 "%3_u " "\n"' /dev/urandom | grep -e dcl -e dc1 | head
>Fix:
Fix typo.
Home |
Main Index |
Thread Index |
Old Index