Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
giflib.34873
bnc949160-fix-colormap-leak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bnc949160-fix-colormap-leak.patch of Package giflib.34873
--- lib/egif_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) Index: giflib-5.0.5/lib/egif_lib.c =================================================================== --- giflib-5.0.5.orig/lib/egif_lib.c +++ giflib-5.0.5/lib/egif_lib.c @@ -376,6 +376,12 @@ EGifPutImageDesc(GifFileType *GifFile, GifFile->Image.Width = Width; GifFile->Image.Height = Height; GifFile->Image.Interlace = Interlace; + + // We're going to overwrite the Image.ColorMap pointer next, so free it if not NULL first! + if (GifFile->Image.ColorMap != NULL) { + GifFreeMapObject(GifFile->Image.ColorMap); + GifFile->Image.ColorMap = NULL; + } if (ColorMap) { GifFile->Image.ColorMap = GifMakeMapObject(ColorMap->ColorCount, ColorMap->Colors);
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