Skip to content
Commit ce212d2a authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: n2 - Set err to EINVAL if snprintf fails for hmac



Return EINVAL if the snprintf check fails when constructing the
algorithm names.

Fixes: 8c20982c ("crypto: n2 - Silence gcc format-truncation false positive warnings")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202409090726.TP0WfY7p-lkp@intel.com/


Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e2b19a48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment