From: wessels <> Date: Fri, 15 Jan 1999 13:36:35 +0000 (+0000) Subject: probably multicast-miss-stream buffer overrun bug causing lots of coredumps X-Git-Tag: SQUID_3_0_PRE1~2396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6355b0f5e977eb7cbfd81c2c53a4a2dc6b5fbac0;p=thirdparty%2Fsquid.git probably multicast-miss-stream buffer overrun bug causing lots of coredumps --- diff --git a/src/access_log.cc b/src/access_log.cc index 120e7d270f..2fbef20b15 100644 --- a/src/access_log.cc +++ b/src/access_log.cc @@ -1,7 +1,7 @@ /* - * $Id: access_log.cc,v 1.47 1998/12/15 17:33:33 wessels Exp $ + * $Id: access_log.cc,v 1.48 1999/01/15 06:36:35 wessels Exp $ * * DEBUG: section 46 Access Log * AUTHOR: Duane Wessels @@ -279,6 +279,8 @@ accessLogLog(AccessLogEntry * al) size_t isize; xstrncpy((char *) ibuf, al->url, 364 * sizeof(int)); isize = ((strlen(al->url) + 8) / 8) * 2; + if (isize > 364) + isize = 364; mcast_encode((unsigned int *) ibuf, isize, (const unsigned int *) Config.mcast_miss.encode_key); comm_udp_sendto(mcast_miss_fd,