Re: [PATCH] lib: rsa: add NULL check for 'algo' in

2025-03-13 Thread Tom Rini
On Tue, 25 Feb 2025 16:53:27 +0300, Anton Moryakov wrote: > - Check return value of fdt_getprop for NULL. > - Return -EFAULT if 'algo' property is missing. > - Prevent NULL pointer dereference in strcmp." > > Triggers found by static analyzer Svace. > > > [...] Applied to u-boot/next, thanks!

[PATCH] lib: rsa: add NULL check for 'algo' in

2025-02-25 Thread Anton Moryakov
- Check return value of fdt_getprop for NULL. - Return -EFAULT if 'algo' property is missing. - Prevent NULL pointer dereference in strcmp." Triggers found by static analyzer Svace. Signed-off-by: Anton Moryakov --- lib/rsa/rsa-verify.c | 5 + 1 file changed, 5 insertions(+) diff --git a/