Browse code

Fixed possible infloops in petite

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@813 77e5149b-7576-45b1-b177-96237e5ba77b

aCaB authored on 2004/08/31 17:50:41
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Aug 31 10:46:48 CEST 2004 (acab)
2
+------------------------------------
3
+  * libclamav/petite.c: Fixed inflooping (thx Christoph)
4
+
1 5
 Mon Aug 30 22:44:30 CEST 2004 (tk)
2 6
 ----------------------------------
3 7
   * configure: Add --disable-gethostbyname_r. Try enabling it if clamav-milter
... ...
@@ -138,7 +138,7 @@ int petite_inflate2x_1to9(char *buf, uint32_t minrva, int bufsz, struct pe_image
138 138
 	for (t = 0; t < j-1 ; t++) {
139 139
 	  uint32_t trva, trsz, tvsz;
140 140
 
141
-	  if ( usects[t].rva < usects[t+1].rva )
141
+	  if ( usects[t].rva <= usects[t+1].rva )
142 142
 	    continue;
143 143
 	  trva = usects[t].rva;
144 144
 	  trsz = usects[t].rsz;