Skip to content
Permalink
Browse files Browse the repository at this point in the history
possible TIFF related-heap buffer overflow (alert & POC by Hardik Shah)
  • Loading branch information
Cristy committed Nov 30, 2020
1 parent c5542e2 commit 6ee5059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2020-11-30 7.0.10-46 <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.10-46 GIT revision 17...

2020-11-30 7.0.10-45 <quetzlzacatenango@image...>
* possible TIFF related-heap buffer overflow (alert & POC by Hardik Shah).

2020-11-30 7.0.10-45 <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.10-45 GIT revision 17972:6c0cb7f72:20201130

Expand Down
2 changes: 1 addition & 1 deletion coders/tiff.c
Expand Up @@ -1975,7 +1975,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
extent+=image->columns*sizeof(uint32);
#endif
strip_pixels=(unsigned char *) AcquireQuantumMemory(extent,
sizeof(*strip_pixels));
2*sizeof(*strip_pixels));
if (strip_pixels == (unsigned char *) NULL)
ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed");
(void) memset(strip_pixels,0,extent*sizeof(*strip_pixels));
Expand Down

0 comments on commit 6ee5059

Please sign in to comment.