summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/libjar/nsJARInputStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/libjar/nsJARInputStream.cpp b/modules/libjar/nsJARInputStream.cpp
index 6993dd578f..086c21ab4f 100644
--- a/modules/libjar/nsJARInputStream.cpp
+++ b/modules/libjar/nsJARInputStream.cpp
@@ -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!