Skip to content
Permalink
Browse files Browse the repository at this point in the history
eliminate heap buffer overflow vulnerability, thanks to ZhangJiaxing (@…
…R0fM1a) from Codesafe Team of Legendsec at Qi'anxin Group
  • Loading branch information
Cristy committed May 27, 2021
1 parent 28d484c commit 930ff0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/tiff.c
Expand Up @@ -1894,7 +1894,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
/*
Convert stripped TIFF image.
*/
extent=2*TIFFStripSize(tiff);
extent=4*TIFFStripSize(tiff);
#if defined(TIFF_VERSION_BIG)
extent+=image->columns*sizeof(uint64);
#else
Expand Down

0 comments on commit 930ff0d

Please sign in to comment.