From 4e7c1b00caecba9e2dca16aab3ec5c16973dd93c Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 21 May 2013 14:00:17 +0700 Subject: [PATCH] Fix GIF rendering issue Uninitialized cache values causes stability issues in systems Cache initialized to 0 fixes it. --- src/gdisp/image_gif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gdisp/image_gif.c b/src/gdisp/image_gif.c index 2cf4c743..6c61219a 100644 --- a/src/gdisp/image_gif.c +++ b/src/gdisp/image_gif.c @@ -576,6 +576,8 @@ gdispImageError gdispImageOpen_GIF(gdispImage *img) { priv->palsize = 0; priv->palette = 0; priv->frame.flags = 0; + priv->cache = 0; + priv->curcache = 0; /* Process the Screen Descriptor structure */