Skip to content

Commit af78ed8

Browse files
committed
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+.
1 parent 7977a60 commit af78ed8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/wc_xmss_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2590,7 +2590,7 @@ static void wc_xmss_bds_state_treehash_set_next_idx(BdsState* bds, int i,
25902590
static void wc_xmss_bds_state_treehash_complete(BdsState* bds, int i)
25912591
{
25922592
byte* sk = bds->treeHash + i * 4;
2593-
sk[3] |= 1 << 7;
2593+
sk[3] |= 1 << 7; /* // NOLINT(clang-analyzer-core.NullDereference) */
25942594
}
25952595

25962596
/* Get the tree hash data at specified index for the BDS state.

0 commit comments

Comments
 (0)