Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes for defects identified by nightly testing:
ecc.c
: inwc_ecc_free()
, fix gating around handling forkey->sign_k
to resolve memory leak, and inwc_ecc_gen_deterministic_k()
, fix-Wconversion
.test.c
: add missingmp_free()
s toecdsa_test_deterministic_k_rs()
andecc521_test_deterministic_k()
.wc_HashType
: change several occurrences ofint
toenum wc_HashType
, includingecc_key.hashType
and APIwc_ecc_set_deterministic_ex()
, to resolve C++ warnings.fixes for various C++ warnings/errors in crypto and TLS layers and test and benchmark code -- implicit casts, negative initializers for unsigned type, jumped initializers, and missing enums in switch()es.
detected and tested with
wolfssl-multi-test.sh ... quantum-safe-wolfssl-all-intelasm-sp-asm-sanitizer 'quantum-safe-wolfssl-all-g\+\+-latest' allcryptonly-Wconversion-intelasm-build allcryptonly-c99-Wconversion-build allcryptonly-c99-Wconversion-m32-build allcryptonly-c89-Wconversion-build allcryptonly-c89-Wconversion-m32-build 'all-g\+\+-gnu17' lms-xmss-wolfssl-all-clang-sanitizer intmath-sanitizer
also tested with
wolfssl-multi-test.sh ... super-quick-check