diff options
| author | James Hilliard <[email protected]> | 2026-08-10 23:17:41 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-08-20 12:15:24 -0600 |
| commit | 6073c36b2c8d39afe3ecc789b281667a3ddebc70 (patch) | |
| tree | d078454bb6d1bd0c0fae7b6bb2d5e5fa06d5c39a /scripts/basic | |
| parent | 24635824319bf0b49998c47d22cfb2a1a45aed10 (diff) | |
test: dm: hash: check digest size before memset
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.
Fixes: 94b349bd902d ("crypto: hash: use DM providers from hash command")
Signed-off-by: James Hilliard <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
