Date: Sun, 23 Jul 2000 22:06:01 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Alfred Perlstein <bright@wintelcom.net> Cc: hackers@freebsd.org Subject: kern.ipc.maxsockbuf vs reality? Message-ID: <200007240206.WAA98542@khavrinen.lcs.mit.edu> In-Reply-To: <20000723153345.P13979@fw.wintelcom.net> References: <20000723153345.P13979@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sun, 23 Jul 2000 15:33:45 -0700, Alfred Perlstein <bright@wintelcom.net> said: > if ((u_quad_t)cc > (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES)) > return (0); I think the code here should clip the requested size into range rather than failing the allocation. That way, a program could just specify a ridiculously-large buffer size and get whatever is the configured maximum. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007240206.WAA98542>