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
There is a memory leak issue in ReadPSImage in coder/ps.c
page_geometry=GetPageGeometry(option); flags=ParseMetaGeometry(page_geometry,&page.x,&page.y,&page.width, &page.height); if (flags == NoValue) { (void) ThrowMagickException(exception,GetMagickModule(),OptionError, "InvalidGeometry","`%s'",option); image=DestroyImage(image); return((Image *) NULL); } page.width=(size_t) ceil((double) (page.width*image->resolution.x/delta.x) -0.5); page.height=(size_t) ceil((double) (page.height*image->resolution.y/ delta.y) -0.5); page_geometry=DestroyString(page_geometry); fitPage=MagickTrue;
https://github.com/ImageMagick/ImageMagick/blob/master/coders/ps.c#L740
It is possible that page_geometry is not destroyed since there is a return statement before it. It is the issue which is similar to the one fixed in 15be797
The text was updated successfully, but these errors were encountered:
https://github.com/ImageMagick/ImageMagick/issues/1601
35ccb46
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 @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Sorry, something went wrong.
7d11230
This was assigned CVE-2019-13137.
No branches or pull requests
Prerequisites
Description
There is a memory leak issue in ReadPSImage in coder/ps.c
https://github.com/ImageMagick/ImageMagick/blob/master/coders/ps.c#L740
It is possible that page_geometry is not destroyed since there is a return statement before it.
It is the issue which is similar to the one fixed in 15be797
The text was updated successfully, but these errors were encountered: