[Patch] multibyte encodings in strings
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2839 bytes
Desc: not available
More information about the Binutils