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

20240804-SetDNSEntry-double-free #7829

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Aug 4, 2024

wolfcrypt/src/asn.c and wolfssl/wolfcrypt/asn.h: in SetDNSEntry(), defer XFREE(dnsEntry, ...) until end (fixes double free); add PBE_NONE to enum PBESTypes; in EncryptContent(), initialize id to PBE_NONE to fix a -Wmaybe-uninitialized (CheckAlgo() can leave it unchanged even when returning success).

tested with wolfssl-multi-test.sh ... super-quick-check

…fer XFREE(dnsEntry, ...) until end (fixes double free); add PBE_NONE to enum PBESTypes; in EncryptContent(), initialize id to PBE_NONE to fix a -Wmaybe-uninitialized (CheckAlgo() can leave it unchanged even when returning success).
@SparkiDev SparkiDev removed the request for review from wolfSSL-Bot August 5, 2024 02:51
@SparkiDev SparkiDev self-assigned this Aug 5, 2024
@SparkiDev SparkiDev merged commit 54370cc into wolfSSL:master Aug 5, 2024
94 of 125 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