m***@exitno.de
2018-10-30 11:04:09 UTC
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
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