[Patch] multibyte encodings in strings
m4tze@exitno.de
m4tze@exitno.de
Tue Oct 30 11:04:00 GMT 2018
Dear binutils team,
I am sending you a patch fixing an issue in the binary 'strings'.
The issue concerned finding multibyte encoded strings at odd offsets.
To test this issue try the following line
echo "aa53007400720069006e0067003100aa53007400720069006e0067003200bb" | xxd -p -r | strings -el
Only the second string will be found.
The attached patch fixes this problem by doing only a single byte step if an
invalid character has been found.
Do not hesitate to contact me in case of questions or feedback.
Happy to contribute,
Mathias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strings.patch
Type: text/x-diff
Size: 2839 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20181030/1b2d4390/attachment.bin>
More information about the Binutils
mailing list