[PATCH] Several dump.c fixes

Bruno Chevalier bmgg.chevalier at gmail.com
Wed Aug 24 09:28:00 UTC 2016


Hi everyone,

This is a patch for hexdump and other applications making use of dump.c.
It did not properly escape format strings.

Example of a format string that failed:
hexdump -n 6 -e '6/1 "\\x%02x\t\\"' some_file

See also this bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776096
On that link we can find a patch supplied by Sergey Romanov <
shruggy at yandex.ru>, which I ported to busybox.

I have also fixed the conversion of the formfeed character which was being
converted to a backspace character.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160824/ecf152fd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Several-dump.c-fixes.patch
Type: application/octet-stream
Size: 1055 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160824/ecf152fd/attachment.obj>


More information about the busybox mailing list