]> git.dujemihanovic.xyz Git - u-boot.git/commit
Check curve_name for null to avoid crash
authorBob Wolff <bob.wolff68@gmail.com>
Tue, 27 Feb 2024 23:57:03 +0000 (15:57 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 7 Mar 2024 12:41:41 +0000 (07:41 -0500)
commit9522956605205d23fe99142547ca3227574d418a
tree7bb5ff48beb02cd32ca5c94cb066ecbdc98a75ac
parent6eb682bc7ea398fad4aadb612c690884e73edc03
Check curve_name for null to avoid crash

If mixed rsa and ecdsa keys are specified in dtsi, an rsa key can be sent
into the ecdsa verify. Without the ecdsa,curve property, this function will
crash due to lack of checking the null pointer return.

Signed-off-by: Bob Wolff <bob.wolff68@gmail.com>
lib/ecdsa/ecdsa-verify.c