[poppler] poppler/XRef.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Thu May 24 10:41:04 UTC 2018
poppler/XRef.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit aa39d079dc3b68b0a3512408706d053d664d557d
Author: Albert Astals Cid <aacid at kde.org>
Date: Thu May 24 12:40:38 2018 +0200
XRef::readXRefStreamSection: Add integer overflow check
fixes oss-fuzz/8444
diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index 089c2eb2..95d19021 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -789,6 +789,9 @@ GBool XRef::readXRefStreamSection(Stream *xrefStr, int *w, int first, int n) {
unsigned long long offset, gen;
int type, c, i, j;
+ if (first > INT_MAX - n) {
+ return gFalse;
+ }
if (first + n < 0) {
return gFalse;
}
More information about the poppler
mailing list