Thread (3 messages) 3 messages, 3 authors, 2025-01-20

Re: [PATCH net-next] tipc: re-order conditions in tipc_crypto_key_rcv()

From: Simon Horman <horms@kernel.org>
Date: 2025-01-17 18:02:34
Also in: kernel-janitors, lkml

On Fri, Jan 17, 2025 at 12:36:14PM +0300, Dan Carpenter wrote:
On a 32bit system the "keylen + sizeof(struct tipc_aead_key)" math could
have an integer wrapping issue.  It doesn't matter because the "keylen"
is checked on the next line, but just to make life easier for static
analysis tools, let's re-order these conditions and avoid the integer
overflow.

Signed-off-by: Dan Carpenter <redacted>
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help