]> git.baikalelectronics.ru Git - kernel.git/commit
net: inet_is_local_reserved_port() port arg should be unsigned short
authorMaciej Żenczykowski <maze@google.com>
Tue, 26 Nov 2019 22:44:16 +0000 (14:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Nov 2019 23:15:07 +0000 (15:15 -0800)
commit1b552ab9cb22b0a2ed58d10100f5d43236bc7ec3
tree99662083152383e3e5ebb299a6fd9dc9c88550b2
parent3801a84b155fa17e1efc43ad636cdf86a0a5ed7a
net: inet_is_local_reserved_port() port arg should be unsigned short

Any argument outside of that range would result in an out of bound
memory access, since the accessed array is 65536 bits long.

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h