poppler/PageLabelInfo.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 6263bb90b09326103b10e4c4edfbc5b84c884921 Author: Albert Astals Cid <[email protected]> Date: Sun Oct 16 12:07:12 2022 +0200 Page label ranges can't start in < 0 oss-fuzz/52140 diff --git a/poppler/PageLabelInfo.cc b/poppler/PageLabelInfo.cc index 7193176a..40a6e7fc 100644 --- a/poppler/PageLabelInfo.cc +++ b/poppler/PageLabelInfo.cc @@ -84,7 +84,10 @@ void PageLabelInfo::parse(const Object *tree, std::set<int> &alreadyParsedRefs) if (!obj.isInt()) { continue; } - int base = obj.getInt(); + const int base = obj.getInt(); + if (base < 0) { + continue; + } obj = nums.arrayGet(i + 1); if (!obj.isDict()) { continue;
