[Snapshot] Format Failure in Busybox Hexdump Output

Sometime in the last few weeks Busybox hexdump started failing to correctly format its output.
Examples -
Failed current version (busybox-1.37.0-r3):

echo -n "0123456789" | hexdump -v -e "\"%08x\""
000000300000003400000038

Working old version (busybox-1.36.1-r2):

echo -n "0123456789" | hexdump -v -e "\"%08x\""
333231303736353400003938

I'm assuming this is a bug unless somebody can enlighten me otherwise...

Yeah, that sure looks like a bug to me. Standard GNU hexdump behaves like busybox 1.36.1, looks like 1.37 is somehow truncating the input bytes to the an 8-bit value.

1 Like

Likely a manifestation of the bug being discussed in upstream busybox mailing list...

Now they applied a fix, but not yet accepted to 1.37.xxx

I will still do a PR about cherry-picking that fix to us.

1 Like
2 Likes

PR now merged. This only effected snapshot.
Thanks to @hnyman @hauke for the fast response!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.