Skip to content

Commit

Permalink
squash heap-buffer-overflow, PoC TIFF from Hardik
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Aug 27, 2022
1 parent 033ed11 commit 1aea203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,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

1 comment on commit 1aea203

@bastien-roucaries
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is CVE-2022-3213

Please sign in to comment.