<<On Sun, 23 Jul 2000 15:33:45 -0700, Alfred Perlstein <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]  | 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to