Re: [PATCH] test: dm: hash: check digest size before memset
Tom Rini <[email protected]>
| Newsgroups | org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 10 Aug 2026 23:17:41 -0600, James Hilliard wrote:
> hash_algo_digest_size() returns -EINVAL for an invalid algorithm. The
> test success provider passes that result directly to memset(), where it
> is converted to a large size_t.
>
> Return the error before touching the output buffer, and exercise the
> invalid-algorithm path in the provider-selection test. This addresses
> Coverity CIDs 652907 and 652908.
>
> [...]
Applied to u-boot/main, thanks!
[1/1] test: dm: hash: check digest size before memset
commit: 6073c36b2c8d39afe3ecc789b281667a3ddebc70
--
Tom