[Toybox] [PATCH] echo/printf: expand test cases, fix \x corner cases.

enh enh at google.com
Sat Aug 17 19:57:24 PDT 2019


The behavior with "\xAV" (where the second hex digit is invalid) is
different from the behavior with "\xVA", and echo and printf differ from
each other.
---
 tests/echo.test     |  7 +++++++
 tests/printf.test   | 16 ++++++++++++++++
 toys/posix/echo.c   | 12 +++++++++---
 toys/posix/printf.c | 11 ++++-------
 4 files changed, 36 insertions(+), 10 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-echo-printf-expand-test-cases-fix-x-corner-cases.patch
Type: text/x-patch
Size: 4294 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190817/02006e18/attachment-0002.bin>


More information about the Toybox mailing list