[libjar] Fix inflation logic.

This has been broken for 11 years. About time it's fixed.
Tag #1683
This commit is contained in:
Moonchild 2020-11-13 13:57:41 +00:00 committed by roytam1
commit 889311cd74

View file

@ -195,7 +195,7 @@ MOZ_WIN_MEM_TRY_BEGIN
return ReadDirectory(aBuffer, aCount, aBytesRead);
case MODE_INFLATE:
if (mFd) {
if (mZs.total_out < mOutSize) {
rv = ContinueInflate(aBuffer, aCount, aBytesRead);
}
// be aggressive about releasing the file!