From f2cf8b9814e7c231634860b291ba9a5adab3456f Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 27 Jul 2016 13:08:18 +0200 Subject: [PATCH] Fixing crash when loading GIF image without enough memory available --- docs/releases.txt | 1 + src/gdisp/gdisp_image_gif.c | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/releases.txt b/docs/releases.txt index b7625e66..d66d6754 100644 --- a/docs/releases.txt +++ b/docs/releases.txt @@ -20,6 +20,7 @@ FEATURE: Add ability to capture mouse events on the win32 ugfx emaultor window FIX: Fixing issue where children of (nested) containers were not properly handled when callin gwinRaise() FEATURE: Automatically close all open files in gfileDeinit() FEATURE: Adding support for IAR and EDG compilers +FIX: Fixing crash when loading GIF image without enough memory available *** Release 2.5 *** diff --git a/src/gdisp/gdisp_image_gif.c b/src/gdisp/gdisp_image_gif.c index 5a3f68c6..5b29ec06 100644 --- a/src/gdisp/gdisp_image_gif.c +++ b/src/gdisp/gdisp_image_gif.c @@ -550,6 +550,7 @@ gdispImageError gdispImageOpen_GIF(gdispImage *img) { priv->frame.flags = 0; priv->cache = 0; priv->curcache = 0; + priv->decode = 0; /* Process the Screen Descriptor structure */