[Mimedefang] ClamAV Freshclam Bug
Bill Maidment
bill at maidment.com.au
Sun Feb 15 04:14:42 EST 2004
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.
This has been reported on the ClamAV list.
Cheers
Bill
More information about the MIMEDefang
mailing list