Browse code

fix Swizzor detection: if no individual string is suspicious, the result must be clean.

git-svn: trunk@4564

Török Edvin authored on 2008/12/16 22:09:12
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Tue Dec 16 15:18:28 EET 2008 (edwin)
2
+------------------------------------
3
+ * libclamav/special.c: fix Swizzor detection: if no individual
4
+ string is suspicious, the result must be clean.
5
+
1 6
 Mon Dec 15 20:25:48 EET 2008 (edwin)
2 7
 ------------------------------------
3 8
  * Makefile.am: remove -Wpacked
... ...
@@ -496,5 +496,7 @@ int cli_detect_swizz(struct swizz_stats *stats)
496 496
 		return CL_CLEAN;
497 497
 	if (stats->suspicious<<10 > 20*stats->total)
498 498
 		return CL_VIRUS;
499
+  if (!stats->suspicious)
500
+    return CL_CLEAN;
499 501
 	return global_swizz;
500 502
 }