Skip to content

Commit 8ee7c36

Browse files
committed
tests/api.c: add suppression for clang-analyzer-optin.core.EnumCastOutOfRange in "Bad hash type" subtest in test_wc_ecc_sm2_create_digest().
1 parent 009ea66 commit 8ee7c36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26100,8 +26100,10 @@ static int test_wc_ecc_sm2_create_digest(void)
2610026100
hashType, hash, sizeof(hash), NULL), BAD_FUNC_ARG);
2610126101

2610226102
/* Bad hash type. */
26103+
/* // NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange) */
2610326104
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
2610426105
-1, hash, 0, key), BAD_FUNC_ARG);
26106+
/* // NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange) */
2610526107
/* Bad hash size. */
2610626108
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
2610726109
hashType, hash, 0, key), BUFFER_E);

0 commit comments

Comments
 (0)