[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BUG] hexdump wrong output for all zero input
From:       Baruch Siach <baruch () tkos ! co ! il>
Date:       2018-06-27 7:03:25
Message-ID: 20180627070325.7zuhra5cnvrf3lav () sapphire ! tkos ! co ! il
[Download RAW message or body]

Hi Busybox List,

Output of Busybox v1.28.1 built in Buildroot:

dd if=/dev/zero bs=1 count=15 2>/dev/null |hexdump -C
*

Output of bsdmainutils 11.1.2 (Debian):

dd if=/dev/zero bs=1 count=15 2>/dev/null |hexdump -C
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00     |...............|
0000000f

With 'count=16' both implementations produce the same output.

I'll try to look into this later.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic