Skip to content

Commit

Permalink
oss-fuzz 42266: Fix number of entries when searching a table
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-liddell committed Dec 14, 2021
1 parent 991a95f commit 82b097f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/pdf_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ static int search_table_1(pdf_context *ctx, unsigned char *str, pdf_keyword **ke
{
int i, code = 0;

for (i = 0; i < 39; i++) {
for (i = 0; i < 27; i++) {
if (memcmp(str, op_table_1[i], 1) == 0) {
code = pdfi_object_alloc(ctx, PDF_KEYWORD, 1, (pdf_obj **)key);
if (code < 0)
Expand Down

0 comments on commit 82b097f

Please sign in to comment.