commit | a28398ba6112be28c6a92aacf06aca1979b454b7 | [log] [tgz] |
---|---|---|
author | Wang Chen <wangchen@cn.fujitsu.com> | Mon Apr 07 09:42:07 2008 +0800 |
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | Sat Apr 12 13:43:23 2008 +0900 |
tree | d1998af0632459026ee9bf479afcf9897f626ac2 | |
parent | 7f1eced8b0a001c4d5a8cfa5ac7b5cbc89fedab8 [diff] |
[IPV6]: Check length of optval provided by user in setsockopt(). Check length of setsockopt's optval, which provided by user, before copy it from user space. For POSIX compliant, return -EINVAL for setsockopt of short lengths. Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>