mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 07:12:28 +00:00
Eliminate one potential integer overflow
There are more to handle, but this resolves an issue already caught by oss-fuzz.
This commit is contained in:
parent
d0b26b8337
commit
cd830968ef
@ -812,7 +812,7 @@ QPDF::read_xrefTable(qpdf_offset_t xref_offset)
|
|||||||
"xref syntax invalid");
|
"xref syntax invalid");
|
||||||
}
|
}
|
||||||
this->m->file->seek(this->m->file->getLastOffset() + bytes, SEEK_SET);
|
this->m->file->seek(this->m->file->getLastOffset() + bytes, SEEK_SET);
|
||||||
for (int i = obj; i < obj + num; ++i)
|
for (qpdf_offset_t i = obj; i - num < obj; ++i)
|
||||||
{
|
{
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user