In libclamav/scanners.c around line 424 add between the "free(buff);"
and the "return ret;":
if(files == 1) {
cli_dbgmsg("Zip -> empty zip file!\n");
*virname = "Empty.Zip";
ret = CL_VIRUS;
}
That section of code will now look like this:
free(buff);
if(files == 1) {
cli_dbgmsg("Zip -> empty zip file!\n");
*virname = "Empty.Zip";
ret = CL_VIRUS;
}
return ret;
}
It's a horrible little hack, but I'm making the assumption here that an
empty zip file is treated as a virus and a password protected zip file
will appear to contain no files. The counter "files" seems to be off by
one.
--
Eric Wieling <[EMAIL PROTECTED]>
BTEL Consulting
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users