Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
GraphicsMagick.8689
GraphicsMagick-CVE-2017-17682.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File GraphicsMagick-CVE-2017-17682.patch of Package GraphicsMagick.8689
Index: GraphicsMagick-1.3.25/coders/wpg.c =================================================================== --- GraphicsMagick-1.3.25.orig/coders/wpg.c 2018-02-20 18:34:55.127867659 +0100 +++ GraphicsMagick-1.3.25/coders/wpg.c 2018-02-20 18:34:55.399872058 +0100 @@ -726,6 +726,9 @@ static Image *ExtractPostscript(Image *i FILE *ps_file; + int + c; + ImageInfo *clone_info; @@ -757,10 +760,13 @@ static Image *ExtractPostscript(Image *i magick_size=ReadBlob(image, sizeof(magick), magick); (void) SeekBlob(image,PS_Offset,SEEK_SET); - while(PS_Size-- > 0) - { - (void) fputc(ReadBlobByte(image),ps_file); - } + while (PS_Size-- > 0) + { + c=ReadBlobByte(image); + if (c == EOF) + break; + (void) fputc(c,ps_file); + } (void) fclose(ps_file); /* Detect file format - Check magic.mgk configuration file. */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor