Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240717-fixes #7757

Merged
merged 1 commit into from
Jul 18, 2024
Merged

20240717-fixes #7757

merged 1 commit into from
Jul 18, 2024

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Jul 17, 2024

fixes for defects identified by nightly testing:

  • ecc.c: in wc_ecc_free(), fix gating around handling for key->sign_k to resolve memory leak, and in wc_ecc_gen_deterministic_k(), fix -Wconversion.

  • test.c: add missing mp_free()s to ecdsa_test_deterministic_k_rs() and ecc521_test_deterministic_k().

  • wc_HashType: change several occurrences of int to enum wc_HashType, including ecc_key.hashType and API wc_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

* ecc.c: in wc_ecc_free(), fix gating around handling for key->sign_k to resolve memory leak, and in wc_ecc_gen_deterministic_k(), fix -Wconversion.

* test.c: add missing mp_free()s to ecdsa_test_deterministic_k_rs() and ecc521_test_deterministic_k().

* wc_HashType: change several occurrences of int to enum wc_HashType, including ecc_key.hashType and API wc_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.
@SparkiDev SparkiDev self-assigned this Jul 18, 2024
@SparkiDev SparkiDev removed the request for review from dgarske July 18, 2024 00:41
@SparkiDev SparkiDev merged commit 27c3140 into wolfSSL:master Jul 18, 2024
119 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants