[Toybox] [PATCH] ls: fix seqfault on broken locale

Jarno Mäkipää jmakip87 at gmail.com
Wed Oct 9 14:28:53 PDT 2019


relates to issue reported in
https://github.com/landley/toybox/issues/146

When user builds toybox CFG_TOYBOX_I18N disabled and tries to list
folder contents with multibyte characters other than UTF-8 ls might
seqfault since wcrtomb returns -1

while locale set to fi_FI.UTF-8 disable CFG_TOYBOX_I18N

touch őőőőaaőő
ls


-Jarno

---
 toys/posix/ls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ls-fix-seqfault-on-broken-locale.patch
Type: text/x-patch
Size: 1297 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191010/1d2b5b95/attachment-0002.bin>


More information about the Toybox mailing list