summaryrefslogtreecommitdiff
path: root/graphics/giflib/files/patch-lib_dgif__lib.c
blob: 7e5060c8e9f8db9590c3ea457babafc47719de69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/dgif_lib.c.orig	2016-03-06 10:52:49.090426000 +0100
+++ lib/dgif_lib.c	2016-03-06 10:53:00.938584000 +0100
@@ -764,7 +764,7 @@
     BitsPerPixel = CodeSize;
 
     /* this can only happen on a severely malformed GIF */
-    if (BitsPerPixel > 8 || Private->RunningBits > 32) {
+    if (BitsPerPixel > 8) {
 	GifFile->Error = D_GIF_ERR_READ_FAILED;	/* somewhat bogus error code */
 	return GIF_ERROR;    /* Failed to read Code size. */
     }