Skip to content
Permalink
Browse files Browse the repository at this point in the history
jpeg: Fix another possible buffer overrun
Found via the clang libfuzzer
  • Loading branch information
AndreRenaud committed Apr 9, 2018
1 parent 5f59097 commit ee58aff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdfgen.c
Expand Up @@ -2036,7 +2036,8 @@ static int jpeg_size(unsigned char* data, unsigned int data_size,
return 0;
}
i+=2;
block_length = data[i] * 256 + data[i+1];
if (i + 1 < data_size)
block_length = data[i] * 256 + data[i+1];
}
}
}
Expand Down

0 comments on commit ee58aff

Please sign in to comment.