On Sun, 15 Feb 2004 20:07:59 +1100
Bill Maidment <[EMAIL PROTECTED]> wrote:

> Hi
> 
> I previously reported a bug in freshclam/manager.c at line 362. My fix
> 
> was incorrect and the problem is also at line 460.
> 
> Both lines 362 and 460 need to be changed from:
>             char* buf = mmalloc(strlen(user)*2+4);
>  to:
>            char *buf = mmalloc((strlen(user) + strlen(pass)) * 2 + 3);
>  
> This ensures that "buf" is large enough to contain the base64
> expansion of user:pass, including the \0.

Thank you, fixed in CVS.

Best regards,
Tomasz Kojm
-- 
      oo    .....       [EMAIL PROTECTED]         www.ClamAV.net
     (\/)\.........     http://www.clamav.net/gpg/tkojm.gpg
        \..........._   0DCA5A08407D5288279DB43454822DC8985A444B
          //\   /\      nie lut 15 12:49:36 CET 2004

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to