From: Chris Wright <[EMAIL PROTECTED]> Date: Wed, 7 Mar 2007 23:10:48 -0800
> Make sure not to copy_to_user more than user's buffer can handle (we > already checked the min, just use it) in ipv6_getsockopt_sticky. And > while there, minor whitespace cleanup now that ipv6_getsockopt_sticky > call can nicely fit on one line. > > Signed-off-by: Chris Wright <[EMAIL PROTECTED]> I wonder about this :-) This gives the user now way to figure out that ipv6_optlen(hdr) is larger than the len they supplied. In other situations usually we validate the length and return -EINVAL if it is too small. That might be the thing to do in this case too. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html