forked from wolfSSL/wolfssl
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user