Skip to content
Commit a28398ba authored by Wang Chen's avatar Wang Chen Committed by YOSHIFUJI Hideaki
Browse files

[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: default avatarWang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
parent 7f1eced8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment