Skip to content
Permalink
Browse files Browse the repository at this point in the history
squash heap-buffer-overflow, PoC TIFF from Hardik
  • Loading branch information
Cristy committed Aug 27, 2022
1 parent 695b0f5 commit 30ccf9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/tiff.c
Expand Up @@ -1892,7 +1892,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
/*
Convert stripped TIFF image.
*/
extent=4*(samples_per_pixel+1)*TIFFStripSize(tiff);
extent=4*((image->depth+7)/8)*(samples_per_pixel+1)*TIFFStripSize(tiff);
strip_pixels=(unsigned char *) AcquireQuantumMemory(extent,
sizeof(*strip_pixels));
if (strip_pixels == (unsigned char *) NULL)
Expand Down

0 comments on commit 30ccf9a

Please sign in to comment.