libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 4ba15dd8984e14d3851ea35696213d3810dfaa1a
parent 5b96365032bf32039e9617eb67e0923022db07c5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 22 Jul 2008 09:20:43 +0000

another segv

Diffstat:
Msrc/plugins/tiffextractor.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/tiffextractor.c b/src/plugins/tiffextractor.c @@ -147,7 +147,7 @@ libextractor_tiff_extract (char *filename, len = data[current_ifd + 1] << 8 | data[current_ifd]; else len = data[current_ifd] << 8 | data[current_ifd + 1]; - if (len * DIRECTORY_ENTRY_SIZE + 2 + 4 > size) + if (len * DIRECTORY_ENTRY_SIZE + 2 + 4 + current_ifd > size) { #if DEBUG printf ("WARNING: malformed tiff\n");