2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-05 11:50:53 +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");