Skip to content

Commit

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

20240513-test_wc_ecc_sm2_create_digest-clang-analyzer-optin.core.EnumCastOutOfRange
  • Loading branch information
SparkiDev authored and jefferyq2 committed Jun 9, 2024
1 parent f07e1ba commit a44f447
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 a44f447

Please sign in to comment.