>Number: 6492 >Category: user >Synopsis: hexdump -s -n is broken >Confidential: yes >Severity: serious >Priority: medium >Responsible: bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Mon Oct 18 21:20:01 GMT 2010 >Closed-Date: >Last-Modified: >Originator: >Release: >Organization: >Environment: System : OpenBSD 4.8 Details : OpenBSD 4.8-current (GENERIC.MP) #4: Sun Oct 3 12:18:28 CEST 2010 r...@adams.internal:/usr/src/sys/arch/i386/compile/GENERIC.MP
Architecture: OpenBSD.i386 Machine : i386 >Description: The skip and length parameter of hexdump doesn't work as expected since following change: Changes by: mill...@cvs.openbsd.org 2010/10/12 11:23:21 Modified files: usr.bin/hexdump: display.c hexdump.c hexdump.h Looks like setvbuf is called after doing getchar in doskip. According to setvbuf(3) that might lead to discarded input. >How-To-Repeat: $ echo 12345678 | hexdump -s 2 -n 2 0000002 Expected output: $ echo 12345678 | hexdump -s 2 -n 2 0000002 3433 0000004 >Fix: >Release-Note: >Audit-Trail: >Unformatted: