Skip to content

Commit

Permalink
proper chuck length checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 17, 2023
1 parent 3b3d02e commit 3c357cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -11667,7 +11667,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
else
text[0].compression=image_info->compression == NoCompression ||
(image_info->compression == UndefinedCompression &&
(text[0].text_length < 128)) ? PNG_ITXT_COMPRESSION_NONE :
(text[0].itxt_length < 128)) ? PNG_ITXT_COMPRESSION_NONE :
PNG_ITXT_COMPRESSION_zTXt ;
if (logging != MagickFalse)
{
Expand Down

0 comments on commit 3c357cd

Please sign in to comment.