1 May 2004 11:22
Re: segfault using cl_scanfile
Tomasz Kojm <tk <at> lodz.tpnet.pl>
2004-05-01 09:22:11 GMT
2004-05-01 09:22:11 GMT
On Fri, 30 Apr 2004 15:49:35 -0700 Alex Krohn <alex-clamav <at> gossamer-threads.com> wrote: > Hi, > > This came from a user of Mail::ClamAV and I narrowed it down to simple > C code that causes the segv. I've attached the c code and the text > file that causes it to seg fault. Is there something wrong with my > test code, or is this a bug in clamav? > > Compiled with: > /usr/bin/gcc clamav-test.c -o clamav-test -lclamav > > Here is a bt: > You forgot to build the trie (cl_buildtrie(root)) before calling cl_scanfile(). -- -- oo ..... Tomasz Kojm <tkojm <at> clamav.net> (\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg \..........._ 0DCA5A08407D5288279DB43454822DC8985A444B //\ /\ Sat May 1 11:21:06 CEST 2004
RSS Feed