Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is the critical code : (in WriteGIFImage)
global_colormap=(unsigned char *) AcquireQuantumMemory(768UL, //1560 sizeof(*global_colormap)); colormap=(unsigned char *) AcquireQuantumMemory(768UL,sizeof(*colormap)); if ((global_colormap == (unsigned char *) NULL) || (colormap == (unsigned char *) NULL)) ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); //1565
AcquireQuantumMemory(…) may return NULL,if one of the “global_colormap” and ”colormap” is NULL,and the other is not,this may cause memory leak error in “If statement”.
The text was updated successfully, but these errors were encountered:
https://github.com/ImageMagick/ImageMagick/issues/808
24d5699
53ea139
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.
Sorry, something went wrong.
This was assigned CVE-2017-18254.
No branches or pull requests
Here is the critical code : (in WriteGIFImage)
AcquireQuantumMemory(…) may return NULL,if one of the “global_colormap” and ”colormap” is NULL,and the other is not,this may cause memory leak error in “If statement”.
The text was updated successfully, but these errors were encountered: