aboutsummaryrefslogtreecommitdiff
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
authorDan Carpenter2020-07-23 17:49:57 +0300
committerDavid S. Miller2020-07-23 12:09:57 -0700
commit17ad73e941b71f3bec7523ea4e9cbc3752461c2d (patch)
treeab46ae77452cfd8c5be79e9601d1d149c8b489e1 /include/net/switchdev.h
parente6827d1abdc9b061a57d7b7d3019c4e99fabea2f (diff)
AX.25: Prevent integer overflows in connect and sendmsg
We recently added some bounds checking in ax25_connect() and ax25_sendmsg() and we so we removed the AX25_MAX_DIGIS checks because they were no longer required. Unfortunately, I believe they are required to prevent integer overflows so I have added them back. Fixes: 8885bb0621f0 ("AX.25: Prevent out-of-bounds read in ax25_sendmsg()") Fixes: 2f2a7ffad5c6 ("AX.25: Fix out-of-bounds read in ax25_connect()") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/switchdev.h')
0 files changed, 0 insertions, 0 deletions