[Toybox] [PATCH] Fix a small buffer overflow in 'rev' when passed an empty line.
Andy Chu
andychup at gmail.com
Sat Mar 19 22:27:52 PDT 2016
Caught by running test_rev under AddressSanitizer. When the length of
the buffer was 0, it would still try to swap characters due to an off by
one bug.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-a-small-buffer-overflow-in-rev-when-passed-an-em.patch
Type: text/x-patch
Size: 997 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160319/e3828bd8/attachment-0004.bin>
More information about the Toybox
mailing list