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.

Cheers
Bill


------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to