zfs/module/icp
Richard Yao af2e53f62c Fix possible NULL pointer dereference in sha2_mac_init()
If mechanism->cm_param is NULL, passing mechanism to
PROV_SHA2_GET_DIGEST_LEN() will dereference a NULL pointer.

Coverity reported this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14044
2022-12-01 12:39:42 -08:00
..
algs Fix -Wattribute-warning in edonr 2022-07-27 13:38:56 -07:00
api Remove checks for null out value in encryption paths 2020-03-26 10:41:57 -07:00
asm-x86_64 icp: fix all !ENDBR objtool warnings in x86 Asm code 2022-12-01 12:39:39 -08:00
core Fix use-after-free bugs in icp code 2022-12-01 12:39:40 -08:00
include icp: fix all !ENDBR objtool warnings in x86 Asm code 2022-12-01 12:39:39 -08:00
io Fix possible NULL pointer dereference in sha2_mac_init() 2022-12-01 12:39:42 -08:00
os Replace sprintf()->snprintf() and strcpy()->strlcpy() 2020-06-07 11:42:12 -07:00
spi Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
Makefile.in icp: fix rodata being marked as text in x86 Asm code 2022-11-30 10:15:58 -08:00
illumos-crypto.c Remove sha1 hashing from OpenZFS, it's not used anywhere. 2022-07-26 10:12:44 -07:00