Browse code

fix possible infinite

git-svn: trunk@1721

Tomasz Kojm authored on 2005/09/16 23:40:53
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Sep 16 16:39:37 CEST 2005 (tk)
2
+----------------------------------
3
+  * libclamav/fsg.c: fix possible infinite loop (acab)
4
+
1 5
 Thu Sep 15 23:32:07 CEST 2005 (tk)
2 6
 ----------------------------------
3 7
   * libclamav/others: increase f-level
... ...
@@ -251,7 +251,7 @@ int unfsg_133(char *source, char *dest, int ssize, int dsize, struct SECTION *se
251 251
     for (i = 0; i < sectcount  ; i++) {
252 252
       uint32_t trva,trsz,traw;
253 253
       
254
-      if ( sections[i].rva < sections[i+1].rva )
254
+      if ( sections[i].rva <= sections[i+1].rva )
255 255
 	continue;
256 256
       trva = sections[i].rva;
257 257
       traw = sections[i].raw;