2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Fix integer overflow in large file test

This commit is contained in:
Jay Berkenbilt 2019-01-07 08:49:14 -05:00
parent faae46467e
commit aa602fd107

View File

@ -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");