Browse code

fixed unpacking of one-section fsg1.33 files

git-svn: trunk@1019

aCaB authored on 2004/10/17 23:54:56
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Sun Oct 17 16:50:37 CEST 2004 (acab)
2
+------------------------------------
3
+  * libclamav/pe.c: fixed a bug preventing one-section fsg1.33 files to be
4
+                    unpacked (problem reported by Christoph Cordes)
5
+
1 6
 Sun Oct 17 16:10:45 CEST 2004 (tk)
2 7
 ----------------------------------
3 8
   * libclamav/others: set flevel to 3
... ...
@@ -607,7 +607,7 @@ int cli_scanpe(int desc, const char **virname, long int *scanned, const struct c
607 607
 		    }
608 608
 		}
609 609
 
610
-		if(!sectcnt || t >= gp - 4 || cli_readint32(support + t)) {
610
+		if(t >= gp - 4 || cli_readint32(support + t)) {
611 611
 		    free(support);
612 612
 		    break;
613 613
 		}