Skip to content

Commit

Permalink
Merge pull request #7527 from douzzer/20240513-test_wc_ecc_sm2_create…
Browse files Browse the repository at this point in the history
…_digest-clang-analyzer-optin.core.EnumCastOutOfRange

20240513-test_wc_ecc_sm2_create_digest-clang-analyzer-optin.core.EnumCastOutOfRange
  • Loading branch information
SparkiDev authored May 14, 2024
2 parents 009ea66 + 8ee7c36 commit a950e90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -26100,8 +26100,10 @@ static int test_wc_ecc_sm2_create_digest(void)
hashType, hash, sizeof(hash), NULL), BAD_FUNC_ARG);

/* Bad hash type. */
/* // NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange) */
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
-1, hash, 0, key), BAD_FUNC_ARG);
/* // NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange) */
/* Bad hash size. */
ExpectIntEQ(wc_ecc_sm2_create_digest(id, sizeof(id), msg, sizeof(msg),
hashType, hash, 0, key), BUFFER_E);
Expand Down

0 comments on commit a950e90

Please sign in to comment.