summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2016-05-24 13:12:46 +0900
committerJiyong Min <jiyong.min@samsung.com>2016-05-24 13:17:37 +0900
commita152ebfeb96620337dd37433b7397a0fd921c055 (patch)
tree88eafe4c20ba76950346dd1970f52e0970a50ab7
parentedeba49917734dd1988f32cceca861d82f5143d7 (diff)
downloadgiflib-a152ebfeb96620337dd37433b7397a0fd921c055.tar.gz
giflib-a152ebfeb96620337dd37433b7397a0fd921c055.tar.bz2
giflib-a152ebfeb96620337dd37433b7397a0fd921c055.zip
(Return error when gif file read to decode, private is not initialized) Change-Id: I4a64905b0b81cd5a8be748cf3761e991781e4df0 Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
-rw-r--r--lib/dgif_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dgif_lib.c b/lib/dgif_lib.c
index f8e5921..e22925e 100644
--- a/lib/dgif_lib.c
+++ b/lib/dgif_lib.c
@@ -97,6 +97,9 @@ DGifOpenFileHandle(int FileHandle, int *Error)
free((char *)GifFile);
return NULL;
}
+
+ /*@i1@*/memset(Private, '\0', sizeof(GifFilePrivateType));
+
#ifdef _WIN32
_setmode(FileHandle, O_BINARY); /* Make sure it is in binary mode. */
#endif /* _WIN32 */