On Wed, 6 Aug 2003 15:05:46 +0000 (UTC)
Julien Benoist <[EMAIL PROTECTED]> wrote:
>
> Is there a trivial way to scan strings *with* CL_ARCHIVE & CL_MAIL support
> ?
No, there isn't.
> pipe(pfd);
> write(pfd[1],buffer,strlen(buffer));
> close(pfd[1]);
First thing - the code above is broken. When working with a binary data, strlen
will return a false size of the buffer, because it's almost sure there's the
terminating \0 character in the buffer.
You should save all data to a temporary file and run cl_scandesc on it.
> throught, it seamed to detect file types, as cl_perror() would return "RAR
> module failure" with one of the files in the test/ dir.
rarfail.rar is a winrar 3.0 archive and the internal rar library can't handle it.
Only clamscan with --unrar (and unrar 3.0 installed in the system) can scan it.
Best regards,
Tomasz Kojm
--
oo ..... [EMAIL PROTECTED]
(\/)\......... http://www.konarski.edu.pl/~zolw
\..........._ I nie zapomnij kliknac w brzuszek...
//\ /\\ <- C. Amboinensis www.pajacyk.pl
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users