101arrowz / fflate

High performance (de)compression in an 8kB package
https://101arrowz.github.io/fflate
MIT License
2.21k stars 77 forks source link

gunzipSync return array with 143.000.000 length #161

Closed zalenskiSofteq closed 1 year ago

zalenskiSofteq commented 1 year ago

How to reproduce

call gunzipSync with Uint8Array [31, 139, 8] as the argument

The problem

argument with 3 bytes breaks the library

image
101arrowz commented 1 year ago

This should throw an error, will fix for the next version.

101arrowz commented 1 year ago

Fixed in v0.8.0.