[PATCH] lib: ecdsa: fix prevent memory leak in ecdsa_add_verify_data

Quentin Schulz quentin.schulz at cherry.de
Tue Mar 4 13:37:21 CET 2025


Hi Tom,

On 3/4/25 5:41 AM, Tom Rini wrote:
> On Fri, 07 Feb 2025 00:47:59 +0300, Anton Moryakov wrote:
> 
>> - Ensure `free_ctx` is called in both error and success paths.
>> - Fix memory leak in `ctx.signature` when `do_add` fails."
>>
>> Triggers found by static analyzer Svace.
>>
>>
> 
> Applied to u-boot/next, thanks!
> 

I believe this commit is not doing anything at all, especially not what 
it says it is doing.

I believe this is a false positive from the static analyzer?

Cheers,
Quentin


More information about the U-Boot mailing list