Skip to content

Commit a950e90

Browse files
authored
Merge pull request #7527 from douzzer/20240513-test_wc_ecc_sm2_create_digest-clang-analyzer-optin.core.EnumCastOutOfRange
20240513-test_wc_ecc_sm2_create_digest-clang-analyzer-optin.core.EnumCastOutOfRange
2 parents 009ea66 + 8ee7c36 commit a950e90

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)