forked from pool/giflib
* Prevent malloc randomess from causing the header output routine to emit a GIF89 version string even when no GIF89 features are present. * Prevent malloc randomess from producing sporadic failures by causing sanity checks added in 5.1.2 to misfire. * Bulletproof gif2rgb against 0-height images. Addressed sf#78: Heap overflow in gif2rgb with images of size 0, also sf#82. * Remove unnecessary duplicate EGifClose() in gifcolor.c. Fixes sf#83 introduced in 5.1.2. * Fix sf#84: incorrect return of DGifSlurp(). - Add giflib-sf-88.patch to fix sf#88 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/giflib?expand=0&rev=37
13 lines
510 B
Diff
13 lines
510 B
Diff
Index: giflib-5.1.3/util/gifbuild.c
|
|
===================================================================
|
|
--- giflib-5.1.3.orig/util/gifbuild.c
|
|
+++ giflib-5.1.3/util/gifbuild.c
|
|
@@ -724,6 +724,7 @@ static void DumpExtensions(GifFileType *
|
|
printf("end\n\n");
|
|
}
|
|
else if (ep->Function == APPLICATION_EXT_FUNC_CODE
|
|
+ && ep->ByteCount >= 11
|
|
&& memcmp(ep->Bytes, "NETSCAPE2.0", 11) == 0) {
|
|
unsigned char *params = (++ep)->Bytes;
|
|
unsigned int loopcount = params[1] | (params[2] << 8);
|