summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-11-13 13:57:41 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-18 10:58:08 +0000
commit71e0814af25e8619782294e65aa42aa1044dabdc (patch)
treef697874f87f8454625435de0d591215ba7ff4dec
parent5744d59188e9efc89e48a5ccbaf42ecafd6faa15 (diff)
downloadUXP-71e0814af25e8619782294e65aa42aa1044dabdc.tar
UXP-71e0814af25e8619782294e65aa42aa1044dabdc.tar.gz
UXP-71e0814af25e8619782294e65aa42aa1044dabdc.tar.lz
UXP-71e0814af25e8619782294e65aa42aa1044dabdc.tar.xz
UXP-71e0814af25e8619782294e65aa42aa1044dabdc.zip
[libjar] Fix inflation logic.
This has been broken for 11 years. About time it's fixed. Tag #1683
-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 6993dd578..086c21ab4 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!