Skip to content

Commit

Permalink
eliminate heap buffer overflow vulnerability, thanks to ZhangJiaxing (@…
Browse files Browse the repository at this point in the history
…R0fM1a) from Codesafe Team of Legendsec at Qi'anxin Group
  • Loading branch information
Cristy committed May 27, 2021
1 parent 2f1c004 commit b307bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/tiff.c
Expand Up @@ -1790,7 +1790,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 b307bca

Please sign in to comment.