Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
memory exhaustion in ReadEPTImage in ept.c #524
Version: ImageMagick 7.0.6-1 Q16 x86_64
When identify EPT file , imagemagick will allocate memory to store the data.
Here is the critical code:
ept_info.postscript_length and ept_info.tiff_length can be controlled as follow:
There is a security checking in the function SetImageExtent, but it is not used in this function, so IM can not control the memory usage
Here is my policy.xml to limit memory usage
And here is the monitor of real memory usage from IM-starting to IM-ending.
Credit: ADLab of Venustech