[Toybox] [PATCH] dirtree_path: always honor size request.

enh enh at google.com
Wed Oct 14 13:19:30 PDT 2020


tar asks dirtree_path() to reserve space for a trailing '/', but recent
changes broke that for the case that was resolving to just a strdup().

Caught by `export ASAN=1` and `make test_tar`.
---
 lib/dirtree.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dirtree_path-always-honor-size-request.patch
Type: text/x-patch
Size: 1053 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20201014/99863434/attachment-0002.bin>


More information about the Toybox mailing list