Browse code

petite: fix max sects count

git-svn: trunk@2479

aCaB authored on 2006/11/05 03:11:20
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Nov  4 19:08:47 CET 2006 (acab)
2
+-----------------------------------
3
+  * libclamav/petite.c:	Fix max section count
4
+
1 5
 Sat Nov  4 18:52:36 CET 2006 (acab)
2 6
 -----------------------------------
3 7
   * libclamav/pe.c:	Move pe_plus return to a more convenient location
... ...
@@ -280,7 +280,7 @@ int petite_inflate2x_1to9(char *buf, uint32_t minrva, uint32_t bufsz, struct pe_
280 280
       thisrva=cli_readint32(packed+8); /* RVA of the original section */
281 281
       packed += 0x10;
282 282
 
283
-      if ( j >= 90 ) {
283
+      if ( j >= 99 ) {
284 284
 	cli_dbgmsg("Petite: maximum number of sections exceeded, giving up.\n");
285 285
 	free(usects);
286 286
 	return -1;