Skip to content
Permalink
Browse files Browse the repository at this point in the history
possible heap buffer overflow (GHSA-35q2-86c7-9247)
  • Loading branch information
Cristy committed Apr 1, 2023
1 parent 371a75d commit e30c693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coders/tiff.c
Expand Up @@ -1811,8 +1811,8 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
/*
Convert stripped TIFF image.
*/
extent=4*MagickMax(image->columns*(samples_per_pixel+extra_samples)*
(image->depth+7)/8,TIFFStripSize(tiff));
extent=MagickMax(sizeof(uint32),(samples_per_pixel+extra_samples)*
(image->depth+7)/8)*image->columns*rows_per_strip;
strip_pixels=(unsigned char *) AcquireQuantumMemory(extent,
sizeof(*strip_pixels));
if (strip_pixels == (unsigned char *) NULL)
Expand Down

0 comments on commit e30c693

Please sign in to comment.