[PATCH] hexdump: add test to verify -n4 -e '"%u"'
Steffen Nurpmeso
steffen at sdaoden.eu
Wed Oct 23 22:45:39 UTC 2024
Steffen Nurpmeso wrote in
<20241023213552.tNfZc0Ju at steffen%sdaoden.eu>:
|Natanael Copa wrote in
| <20241023152936.658a4fdd at ncopa-desktop>:
||On Wed, 23 Oct 2024 15:11:20 +0200
||Natanael Copa <ncopa at alpinelinux.org> wrote:
||
||> Add test that uncovers bug introduced in busybox 1.37.0
...
||I git bisected the bug to:
||
||commit e2287f99fe6f21fd6435ad04340170ad4ba5f6b3
||Author: Denys Vlasenko <vda.linux at googlemail.com>
||Date: Thu May 25 17:39:28 2023 +0200
...
|Hm, but i get the same strange result of the thing you had posted
|to AlpineLinux with an elder version:
|
| $ hexdump -s16 -n4 -e '"%u"' test;echo
| 1094795585
| $ busybox.static hexdump -s16 -n4 -e '"%u"' test;echo
| 65
| $ busybox.static | sed '2,$d'
| BusyBox v1.37.0.git (2024-04-20 23:25:28 CEST) multi-call binary
Interesting that a fix to the later commit fixes the thing.
I have this binary around, in case of interest, and it definitely
has that bug:
$ ll /sbin/busybox.static
-rwsr-xr-x 1 root root 1955192 Apr 20 2024 /sbin/busybox.static*
$ file /sbin/busybox.static
/sbin/busybox.static: setuid ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=cd6cdfd724de9afa375bab47e3244473d2e9501a, for GNU/Linux 5.10.0, stripped
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
More information about the busybox
mailing list