Commit aa602fd107a622a3f12e6530220bb0303b95b520
1 parent
faae4646
Fix integer overflow in large file test
Showing
1 changed file
with
1 additions
and
1 deletions
libqpdf/QPDF_linearization.cc
| ... | ... | @@ -794,7 +794,7 @@ QPDF::checkHPageOffset(std::list<std::string>& errors, |
| 794 | 794 | { |
| 795 | 795 | stopOnError("supposed first page object is not known"); |
| 796 | 796 | } |
| 797 | - int offset = getLinearizationOffset(first_page_og); | |
| 797 | + qpdf_offset_t offset = getLinearizationOffset(first_page_og); | |
| 798 | 798 | if (table_offset != offset) |
| 799 | 799 | { |
| 800 | 800 | warnings.push_back("first page object offset mismatch"); | ... | ... |