Re: [PATCH][next] tls: rx: Fix less than zero check on unsigned variable sz
From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-08-01 19:25:09
Also in:
kernel-janitors, lkml
From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-08-01 19:25:09
Also in:
kernel-janitors, lkml
On Sat, 30 Jul 2022 12:40:27 +0100 Colin Ian King wrote:
Variable sz is declared as an unsigned size_t and is being checked
for an less than zero error return on a call to tls_rx_msg_size.
Fix this by making sz an int.
Fixes: 84c61fe1a75b ("tls: rx: do not use the standard strparser")
Signed-off-by: Colin Ian King <redacted>
---
net/tls/tls_strp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Already fixed 2 days before you posted, I guess linux-next lagged.
commit 8fd1e151779285b211e7184e9237bba69bd74386
Author: Yang Li [off-list ref]
AuthorDate: Wed Jul 27 20:10:19 2022
Commit: Jakub Kicinski [off-list ref]
CommitDate: Thu Jul 28 21:50:39 2022
tls: rx: Fix unsigned comparison with less than zero