[poppler] poppler/JBIG2Stream.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Nov 7 23:48:18 UTC 2019
poppler/JBIG2Stream.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 8b4a2891d9e4ca8ac835527cc7d114ab08e89ea7
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Nov 8 00:43:05 2019 +0100
Fix uninitialized memory use in JBIG2Stream::readTextRegionSeg
When the unlikely condition triggers
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 09e5b6c8..48554d80 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -2263,7 +2263,10 @@ void JBIG2Stream::readTextRegionSeg(unsigned int segNum, bool imm,
symCodeTab[i++].prefixLen = 0;
}
} else if (j > 0x100) {
- if (unlikely(i == 0)) ++i;
+ if (unlikely(i == 0)) {
+ symCodeTab[i].prefixLen = 0;
+ ++i;
+ }
for (j -= 0x100; j && i < numSyms; --j) {
symCodeTab[i].prefixLen = symCodeTab[i-1].prefixLen;
++i;
More information about the poppler
mailing list