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

Rob Landley rob at landley.net
Sun Dec 22 21:52:39 PST 2019


On 12/22/19 9:23 PM, enh via Toybox wrote:
> It turns out that zlib defaults to just copying data verbatim if the
> input isn't in gzip format, rather than rejecting it.

Yup, paragraph 6 of my reply here:

http://lists.landley.net/pipermail/toybox-landley.net/2018-January/009323.html

(One of the things that got dropped on the floor because $DAYJOB regularly yanks
me away from toybox long enough to forget what I was working on when I left off...)

> Explicitly add a
> check that zlib isn't doing that. (The toybox inflation path already
> errors out.)
> 
> Also add the missing test.

Applied,

Rob



More information about the Toybox mailing list