commit 11445f22d9594d9e792ad230e6c1fa7f805d0ad2
parent a000ee8e74074affc7bea1a919afa8e335f54800
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 15 Sep 2005 07:45:56 +0000
fixing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/pngextractor.c b/src/plugins/pngextractor.c
@@ -307,7 +307,7 @@ struct EXTRACTOR_Keywords * libextractor_png_extract(char * filename,
length = htonl(getIntAt(pos)); pos+=4;
/* printf("Length: %u, pos %u\n", length, pos - data); */
if ( (pos+4+length+4 > end) ||
- (pos+4+length+4 < pos + 4 + length) )
+ (pos+4+length+4 < pos + 8) )
break;
if (0 == strncmp(pos, "IHDR", 4))