[Toybox] [PATCH] gzip: reject non-gzip files in zlib path.

enh enh at google.com
Sun Dec 22 19:23:43 PST 2019


It turns out that zlib defaults to just copying data verbatim if the
input isn't in gzip format, rather than rejecting it. Explicitly add a
check that zlib isn't doing that. (The toybox inflation path already
errors out.)

Also add the missing test.
---
 tests/gzip.test | 3 +++
 toys/lsb/gzip.c | 1 +
 2 files changed, 4 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gzip-reject-non-gzip-files-in-zlib-path.patch
Type: text/x-patch
Size: 1494 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191222/6b8d6b51/attachment.bin>


More information about the Toybox mailing list