Bug 1355661 - Continue inflating even when the Fd was closed, as long as there is still output pending. r=aklotz

This appears to have been "broken" since bug 510844, for some value of
broken where it doesn't actually cause any problem in practice because
of how zlib behaves.

That is, in practice, we always still have input to process when there's
pending output. But while that's true with zlib, that's not necessarily
true for other decompressors (e.g. brotli).

--HG--
extra : rebase_source : 7572139f8e2b3df8c6b68123c0a14524dddb3faf
This commit is contained in:
Mike Hommey 2017-04-07 14:05:23 +09:00
Родитель 58e3fafe78
Коммит af3b61e59a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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!