Remove unnecessary duplicate EGifClose(). (Fixes SF bug #83)
Multiple use-after-free and double-free vulnerabilities in gifcolor.c
in GIFLIB 5.1.2 have unspecified impact and attack vectors.
https://nvd.nist.gov/vuln/detail/CVE-2016-3177
Change-Id: I24e077f2a3fbd6554d2557c4bdd94e06e3e08661
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
if (EGifCloseFile(GifFile, &ErrorCode) == GIF_ERROR)
{
PrintGifError(ErrorCode);
- if (GifFile != NULL) {
- EGifCloseFile(GifFile, NULL);
- }
exit(EXIT_FAILURE);
}