gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7511 - Extractor/src/plugins


From: gnunet
Subject: [GNUnet-SVN] r7511 - Extractor/src/plugins
Date: Tue, 22 Jul 2008 03:20:43 -0600 (MDT)

Author: grothoff
Date: 2008-07-22 03:20:43 -0600 (Tue, 22 Jul 2008)
New Revision: 7511

Modified:
   Extractor/src/plugins/tiffextractor.c
Log:
another segv

Modified: Extractor/src/plugins/tiffextractor.c
===================================================================
--- Extractor/src/plugins/tiffextractor.c       2008-07-22 09:11:01 UTC (rev 
7510)
+++ Extractor/src/plugins/tiffextractor.c       2008-07-22 09:20:43 UTC (rev 
7511)
@@ -147,7 +147,7 @@
         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");





reply via email to

[Prev in Thread] Current Thread [Next in Thread]