Browse code

bb#743

git-svn: trunk@3457

aCaB authored on 2007/12/26 23:27:15
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Dec 26 14:49:12 CET 2007 (acab)
2
+-----------------------------------
3
+  * libclamav/wwunpack.c: fix typo causing SEGV - bb#743
4
+
1 5
 Sat Dec 22 21:52:51 CET 2007 (tk)
2 6
 ---------------------------------
3 7
   * freshclam: new option CompressLocalDatabase (default: no)
... ...
@@ -200,7 +200,7 @@ int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_secti
200 200
       }
201 201
 
202 202
       if(!CLI_ISCONTAINED(exe, exesz, ucur, backsize) || !CLI_ISCONTAINED(exe, exesz, ucur-backbytes, backsize)) error=1;
203
-      while(backsize--) {
203
+      else while(backsize--) {
204 204
 	*ucur=*(ucur-backbytes);
205 205
 	ucur++;
206 206
       }