git-svn: trunk@1737
Tomasz Kojm authored on 2005/10/31 03:50:40... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Sun Oct 30 18:46:36 CET 2005 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * libclamav/scanners.c: fix logic bug in cli_scandesc(). Patch by Andrey J. |
|
4 |
+ Melnikoff (TEMHOTA) <temnota*kmv.ru> |
|
5 |
+ |
|
1 | 6 |
Mon Oct 24 12:29:31 CEST 2005 (acab) |
2 | 7 |
------------------------------------ |
3 | 8 |
* libclamav/pe.c: fixed possible infinite loop, reported by Christoph |
... | ... |
@@ -1586,17 +1586,19 @@ int cli_magic_scandesc(int desc, const char **virname, long int *scanned, const |
1586 | 1586 |
break; |
1587 | 1587 |
|
1588 | 1588 |
case CL_TYPE_RARSFX: |
1589 |
- if(SCAN_ARCHIVE && type == CL_TYPE_MSEXE) |
|
1589 |
+ if(SCAN_ARCHIVE && type == CL_TYPE_MSEXE) { |
|
1590 | 1590 |
cli_dbgmsg("RAR-SFX found at %d\n", ftoffset); |
1591 | 1591 |
if(cli_scanrar(desc, virname, scanned, engine, limits, options, arec, mrec, ftoffset) == CL_VIRUS) |
1592 | 1592 |
return CL_VIRUS; |
1593 |
+ } |
|
1593 | 1594 |
break; |
1594 | 1595 |
|
1595 | 1596 |
case CL_TYPE_ZIPSFX: |
1596 |
- if(SCAN_ARCHIVE && type == CL_TYPE_MSEXE) |
|
1597 |
+ if(SCAN_ARCHIVE && type == CL_TYPE_MSEXE) { |
|
1597 | 1598 |
cli_dbgmsg("ZIP-SFX found at %d\n", ftoffset); |
1598 | 1599 |
if(cli_scanzip(desc, virname, scanned, engine, limits, options, arec, mrec, ftoffset) == CL_VIRUS) |
1599 | 1600 |
return CL_VIRUS; |
1601 |
+ } |
|
1600 | 1602 |
break; |
1601 | 1603 |
} |
1602 | 1604 |
nret == CL_TYPE_MAIL ? mrec-- : arec--; |