wolfcrypt/src/wc_xmss_impl.c: in wc_xmss_bds_state_treehash_complete(), add suppression for false positive clang-analyzer-core.NullDereference from LLVM-21 pre20250523+.

pull/8908/head
Daniel Pouzzner 2025-06-20 15:31:31 -05:00
parent 7977a605c5
commit af78ed8b6f
1 changed files with 1 additions and 1 deletions

View File

@ -2590,7 +2590,7 @@ static void wc_xmss_bds_state_treehash_set_next_idx(BdsState* bds, int i,
static void wc_xmss_bds_state_treehash_complete(BdsState* bds, int i)
{
byte* sk = bds->treeHash + i * 4;
sk[3] |= 1 << 7;
sk[3] |= 1 << 7; /* // NOLINT(clang-analyzer-core.NullDereference) */
}
/* Get the tree hash data at specified index for the BDS state.