gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r9840 - Extractor/src/plugins
Date: Mon, 21 Dec 2009 12:43:28 +0100

Author: grothoff
Date: 2009-12-21 12:43:28 +0100 (Mon, 21 Dec 2009)
New Revision: 9840

Modified:
   Extractor/src/plugins/elf_extractor.c
Log:
fixing CID 205

Modified: Extractor/src/plugins/elf_extractor.c
===================================================================
--- Extractor/src/plugins/elf_extractor.c       2009-12-21 11:39:14 UTC (rev 
9839)
+++ Extractor/src/plugins/elf_extractor.c       2009-12-21 11:43:28 UTC (rev 
9840)
@@ -420,9 +420,9 @@
       EXTRACTOR_common_cat_unpack (&data[EI_NIDENT],
                                   ELF64_HEADER_SPECS[getByteorder 
(data[EI_DATA])],
                                   ELF64_HEADER_FIELDS (ehdr64));
-      if (ehdr64->e_shoff + ehdr64->e_shentsize * ehdr64->e_shnum > size)
+      if (ehdr64->e_shoff + ((uint32_t) ehdr64->e_shentsize * ehdr64->e_shnum) 
> size)
        return -1;                  /* invalid offsets... */
-      if (ehdr64->e_phoff + ehdr64->e_phensize * ehdr64->e_phnum > size)
+      if (ehdr64->e_phoff + ((uint32_t) ehdr64->e_phensize * ehdr64->e_phnum) 
> size)
        return -1;
       return 1;
     default:





reply via email to

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