Skip to content

20240804-SetDNSEntry-double-free#7829

Merged
SparkiDev merged 1 commit intowolfSSL:masterfrom
douzzer:20240804-SetDNSEntry-double-free
Aug 5, 2024
Merged

20240804-SetDNSEntry-double-free#7829
SparkiDev merged 1 commit intowolfSSL:masterfrom
douzzer:20240804-SetDNSEntry-double-free

Conversation

@douzzer
Copy link
Copy Markdown
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
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