Hi all,

Maybe you've already read my two previous messages about that very
annoying bug in squidGuard:
http://marc.theaimsgroup.com/?l=squidguard&m=102372008217944&w=2
http://marc.theaimsgroup.com/?l=squidguard&m=103011521422745&w=2

I know other people do have the same problem with squidGuard when
they're trying to update their databases.

With the help of a colleague, we think we've isolated this bug.

NOTE: I'm not a C coder and I don't know anything about C programming.
So please note that, even if it seems to solve the bug, it could also
break something else in squidGuard.

To solve that, edit the file src/sgDb.c (squidGuard V1.2.0 sources). Go
to line 44 and replace:
    dbfile = (char *) sgMalloc(strlen(file) + 5);
by
    dbfile = (char *) sgMalloc(strlen(file) + 4);


Next, go to line 146 and replace:
        update = (char *) sgMalloc(strlen(file) + 5);
with
        update = (char *) sgMalloc(strlen(file) + 6);

Now recompile squidGuard and try.... It should work without any problems
(that's the case for me ;).

Hope this will be included in a next squidGuard release...

Regards,
Gilles.
-- 
/ Gilles CHAUVIN / CRDP de Haute-Normandie /
/ E-mail: [EMAIL PROTECTED] / GnuPG: 0x2E89DBB7 /

Attachment: msg01176/pgp00000.pgp
Description: PGP signature

Reply via email to