Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:5853
ImageMagick.openSUSE_13.2_Update
ImageMagick-CVE-2016-7529.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2016-7529.patch of Package ImageMagick.openSUSE_13.2_Update
From 2adcd183e6b81ab553847df7ef5ab27f024fade6 Mon Sep 17 00:00:00 2001 From: Cristy <urban-warrior@imagemagick.org> Date: Sat, 30 Jan 2016 09:53:12 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/104 --- coders/xcf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: ImageMagick-6.8.9-8/coders/xcf.c =================================================================== --- ImageMagick-6.8.9-8.orig/coders/xcf.c 2016-09-26 13:11:29.091130272 +0200 +++ ImageMagick-6.8.9-8/coders/xcf.c 2016-09-26 16:35:12.699645596 +0200 @@ -332,6 +332,13 @@ static char *ReadBlobStringWithLongSize( return(string); } +static inline size_t MagickMax(const size_t x,const size_t y) +{ + if (x > y) + return(x); + return(y); +} + static MagickBooleanType load_tile(Image *image,Image *tile_image, XCFDocInfo *inDocInfo,XCFLayerInfo *inLayerInfo,size_t data_length) { @@ -357,7 +364,8 @@ static MagickBooleanType load_tile(Image *xcfdata, *xcfodata; - xcfdata=(XCFPixelPacket *) AcquireQuantumMemory(data_length,sizeof(*xcfdata)); + xcfdata=(XCFPixelPacket *) AcquireQuantumMemory(MagickMax(data_length, + tile_image->columns*tile_image->rows),sizeof(*xcfdata)); if (xcfdata == (XCFPixelPacket *) NULL) ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename);
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