mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
tests/api.c: add suppression for clang-analyzer-optin.core.EnumCastOutOfRange in "Bad hash type" subtest in test_wc_ecc_sm2_create_digest().
This commit is contained in:
@ -26100,8 +26100,10 @@ static int test_wc_ecc_sm2_create_digest(void)
|
|||||||
hashType, hash, sizeof(hash), NULL), BAD_FUNC_ARG);
|
hashType, hash, sizeof(hash), NULL), BAD_FUNC_ARG);
|
||||||
|
|
||||||
/* Bad hash type. */
|
/* Bad hash type. */
|
||||||
|
/* // NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange) */
|
||||||
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
|
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
|
||||||
-1, hash, 0, key), BAD_FUNC_ARG);
|
-1, hash, 0, key), BAD_FUNC_ARG);
|
||||||
|
/* // NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange) */
|
||||||
/* Bad hash size. */
|
/* Bad hash size. */
|
||||||
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
|
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
|
||||||
hashType, hash, 0, key), BUFFER_E);
|
hashType, hash, 0, key), BUFFER_E);
|
||||||
|
Reference in New Issue
Block a user