mirror of
https://github.com/0x5eal/luau-unzip.git
synced 2025-04-04 06:30:53 +01:00
Currently, we have a hardcoded buffer size of compressed * 4 for the decompressed data, since deflate does not give the true decompressed size (although zip metadata does). So, on files with a very high compression ratio, a buffer overflow is triggered as our destination buffer is not large enough for the entire decompressed data. This temporary fix involves increasing the factor from 4 to 7 for the size estimation. A future fix would involve using the true decompressed size. |
||
---|---|---|
.. | ||
crc.luau | ||
inflate.luau | ||
init.luau |