[ Y ] I have verified that I am using the latest version of ImageMagick
[ Y ] I have searched open and closed issues to ensure it has not already been reported
Description
There is a potential memory leak vulnerability in TIFFWritePhotoshopLayers function in coders/tiff.c.
Steps to Reproduce
As we can see, there is a check for base_image equals to NULL or not in line 3123. (https://github.com/ImageMagick/ImageMagick/blob/master/coders/tiff.c#L3123)
At the same time, there are several call to ThrowBinaryException in line 3127, line 3135, line 3145 and line 3154. I think base_image should be destroyed firstly before call ThrowBinaryException. Otherwise, there would be a memory leak vulnerability.
Prerequisites
Description
There is a potential memory leak vulnerability in TIFFWritePhotoshopLayers function in coders/tiff.c.
Steps to Reproduce
As we can see, there is a check for base_image equals to NULL or not in line 3123. (https://github.com/ImageMagick/ImageMagick/blob/master/coders/tiff.c#L3123)
At the same time, there are several call to ThrowBinaryException in line 3127, line 3135, line 3145 and line 3154. I think base_image should be destroyed firstly before call ThrowBinaryException. Otherwise, there would be a memory leak vulnerability.
System Configuration
The text was updated successfully, but these errors were encountered: