diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-07 14:49:14 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-07 14:49:14 +0100 |
commit | aa602fd107a622a3f12e6530220bb0303b95b520 (patch) | |
tree | dd3c54ce87f3e83b7f3066a860b8b61ad96b8195 | |
parent | faae46467e362eda3fbd3947ed3fa1c32e2b5a19 (diff) | |
download | qpdf-aa602fd107a622a3f12e6530220bb0303b95b520.tar.zst |
Fix integer overflow in large file test
-rw-r--r-- | libqpdf/QPDF_linearization.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_linearization.cc b/libqpdf/QPDF_linearization.cc index 91855942..5de1e8f6 100644 --- a/libqpdf/QPDF_linearization.cc +++ b/libqpdf/QPDF_linearization.cc @@ -794,7 +794,7 @@ QPDF::checkHPageOffset(std::list<std::string>& errors, { stopOnError("supposed first page object is not known"); } - int offset = getLinearizationOffset(first_page_og); + qpdf_offset_t offset = getLinearizationOffset(first_page_og); if (table_offset != offset) { warnings.push_back("first page object offset mismatch"); |