]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix a bit overflow in tipc_crypto_key_rcv()
authorHangyu Hua <hbh25y@gmail.com>
Fri, 11 Feb 2022 04:55:10 +0000 (12:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Feb 2022 12:12:25 +0000 (12:12 +0000)
commit1c0a8da949869c722da7552fc0f3a316d3477a98
treeb47e1bff716dffcd7249b60826b6690e3175ef90
parent225629a44d5a4863d3678b39183484f8f3936044
tipc: fix a bit overflow in tipc_crypto_key_rcv()

msg_data_sz return a 32bit value, but size is 16bit. This may lead to a
bit overflow.

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/crypto.c