We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4994693 commit 801ffe7Copy full SHA for 801ffe7
1 file changed
source/pdf/pdf-xref.c
@@ -336,7 +336,7 @@ pdf_read_start_xref(hd_context *ctx, pdf_document *doc)
336
doc->startxref = 0;
337
while (i < n && buf[i] >= '0' && buf[i] <= '9')
338
{
339
- if (doc->startxref >= INT64_MAX/10)
+ if (doc->startxref >= INT32_MAX)
340
hd_throw(ctx, HD_ERROR_GENERIC, "startxref too large");
341
doc->startxref = doc->startxref * 10 + (buf[i++] - '0');
342
}
0 commit comments