aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@embedded.pro>2016-07-27 13:08:18 +0200
committerJoel Bodenmann <joel@embedded.pro>2016-07-27 13:08:18 +0200
commitf2cf8b9814e7c231634860b291ba9a5adab3456f (patch)
treea1027c4a212b12f384aa4c940b18a0effbe57bbd
parent0abb8d3af3e7640d99a822903464963b2877fa9f (diff)
downloaduGFX-f2cf8b9814e7c231634860b291ba9a5adab3456f.tar.gz
uGFX-f2cf8b9814e7c231634860b291ba9a5adab3456f.tar.bz2
uGFX-f2cf8b9814e7c231634860b291ba9a5adab3456f.zip
Fixing crash when loading GIF image without enough memory available
-rw-r--r--docs/releases.txt1
-rw-r--r--src/gdisp/gdisp_image_gif.c1
2 files changed, 2 insertions, 0 deletions
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 */