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

clean.

git-svn: trunk@4564
0.95
Török Edvin 17 years ago
parent 31a6bb1dde
commit eb86e93563
  1. 5
      ChangeLog
  2. 2
      libclamav/special.c

@ -1,3 +1,8 @@
Tue Dec 16 15:18:28 EET 2008 (edwin)
------------------------------------
* libclamav/special.c: fix Swizzor detection: if no individual
string is suspicious, the result must be clean.
Mon Dec 15 20:25:48 EET 2008 (edwin)
------------------------------------
* Makefile.am: remove -Wpacked

@ -496,5 +496,7 @@ int cli_detect_swizz(struct swizz_stats *stats)
return CL_CLEAN;
if (stats->suspicious<<10 > 20*stats->total)
return CL_VIRUS;
if (!stats->suspicious)
return CL_CLEAN;
return global_swizz;
}

Loading…
Cancel
Save