Skip to content

Commit

Permalink
check for possible IPTC overrun
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 22, 2023
1 parent 01dc6b6 commit 1ecea5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,8 @@ static boolean ReadIPTCProfile(j_decompress_ptr jpeg_info)
/*
Remove the version number.
*/
if (length <= 15)
return(TRUE);
for (i=0; i < 4; i++)
if (GetCharacter(jpeg_info) == EOF)
break;
Expand Down

0 comments on commit 1ecea5c

Please sign in to comment.