aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2019-02-20 22:34:54 +0100
committerDavid S. Miller <[email protected]>2019-02-22 11:49:28 -0800
commit52baf9878b65872a7fc735d7fae3350ea9f30646 (patch)
tree4cf2045a11e399b9fc4a6930be848a3554c7d752 /lib/netdev-notifier-error-inject.c
parentf5b51fe804ec2a6edce0f8f6b11ea57283f5857b (diff)
net: socket: add check for negative optlen in compat setsockopt
__sys_setsockopt() already checks for `optlen < 0`. Add an equivalent check to the compat path for robustness. This has to be `> INT_MAX` instead of `< 0` because the signedness of `optlen` is different here. Signed-off-by: Jann Horn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions