[Mimedefang] Patch for Clam 0.88
David F. Skoll
dfs at roaringpenguin.com
Wed Jan 11 12:36:43 EST 2006
Hi, all,
So I found my way out of the twisty passasges. The following patch
appears to fix ClamAV 0.88 so it works properly on deflate64-compressed
ZIP files, if you have UNIX "unzip" installed.
YMMV. Use at your own risk.
Regards,
David.
diff -r -u clamav-0.88.PRISTINE/libclamav/scanners.c clamav-0.88/libclamav/scanners.c
--- clamav-0.88.PRISTINE/libclamav/scanners.c 2006-01-05 10:24:08.000000000 -0500
+++ clamav-0.88/libclamav/scanners.c 2006-01-11 12:34:02.000000000 -0500
@@ -1457,8 +1457,12 @@
break;
case CL_TYPE_ZIP:
- if(SCAN_ARCHIVE)
- ret = cli_scanzip(desc, virname, scanned, root, limits, options, arec, mrec);
+ if(SCAN_ARCHIVE) {
+ ret = cli_scanzip(desc, virname, scanned, root, limits, options, arec, mrec);
+ if (ret == CL_EZIP) {
+ return ret;
+ }
+ }
break;
case CL_TYPE_GZ:
More information about the MIMEDefang
mailing list