2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Check for overflow in page labels (fuzz issue 23599)

This commit is contained in:
Jay Berkenbilt 2020-10-22 05:45:01 -04:00
parent 7f4a4df919
commit c1684eae91
3 changed files with 1 additions and 1 deletions

1
TODO
View File

@ -65,7 +65,6 @@ Fuzz Errors
* https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=<N>
* New:
* 23599: integer overflow: https://oss-fuzz.com/testcase?key=6290807920525312
* 23642: leak: https://oss-fuzz.com/testcase-detail/4906569690251264
* Ignoring these:

BIN
fuzz/qpdf_extra/23599.fuzz Normal file

Binary file not shown.

View File

@ -53,6 +53,7 @@ QPDFPageLabelDocumentHelper::getLabelForPage(long long page_idx)
{
start = St.getIntValue();
}
QIntC::range_check(start, offset);
start += offset;
result = QPDFObjectHandle::newDictionary();
result.replaceOrRemoveKey("/S", S);