analyzer coddling:

in api.c test_wolfSSL_dtls12_fragments_spammer(), inhibit clang-analyzer-deadcode.DeadStores;

in asn.c ParseCRL_Extensions() old (!WOLFSSL_ASN_TEMPLATE) version, fix bounds check to prevent overshift;

in misc.c ctMaskCopy(), use `*(x + i)`, not x[i], to tiptoe around cppcheck-2.9 objectIndex bug.
This commit is contained in:
Daniel Pouzzner
2022-08-31 22:56:08 -05:00
parent db6d69143e
commit ea3959f2f6
3 changed files with 4 additions and 2 deletions

View File

@@ -552,7 +552,7 @@ WC_STATIC WC_INLINE void ctMaskCopy(byte mask, byte* dst, byte* src,
{
int i;
for (i = 0; i < size; ++i) {
dst[i] ^= (dst[i] ^ src[i]) & mask;
*(dst + i) ^= (*(dst + i) ^ *(src + i)) & mask;
}
}