2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-18 16:37:48 +00:00

fix: make sure to stop inflating when Z_STREAM_END is encountered

This commit is contained in:
Jan Laupetin
2025-12-16 01:01:32 +00:00
parent 67372025b4
commit a8fb5053dd

View File

@@ -61,6 +61,8 @@ namespace
if (ret < 0) if (ret < 0)
throw InvalidCompressionException(); throw InvalidCompressionException();
if (ret == Z_STREAM_END)
break;
} }
return length - m_stream.avail_out; return length - m_stream.avail_out;