Skip to content

zero-initialize DecodedCert immediately after allocation in wolfSSL_CertManagerCABufferType#10437

Open
gasbytes wants to merge 1 commit intowolfSSL:masterfrom
gasbytes:CertManagerLoadCABufferType_MoveXMemset
Open

zero-initialize DecodedCert immediately after allocation in wolfSSL_CertManagerCABufferType#10437
gasbytes wants to merge 1 commit intowolfSSL:masterfrom
gasbytes:CertManagerLoadCABufferType_MoveXMemset

Conversation

@gasbytes
Copy link
Copy Markdown
Contributor

@gasbytes gasbytes commented May 8, 2026

Description

zero-initialize DecodedCert immediately after allocation in wolfSSL_CertManagerCABufferType to prevent cleanup on an uninitialized struct on the pem error path.

Fixes zd#21777

Testing

Against reproducer from zd#21777 with:
./configure --enable-debug --enable-pkcs7=no --enable-opensslall=no --enable-opensslextra=no --enable-shared --enable-static
as configuration.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@gasbytes gasbytes self-assigned this May 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

MemBrowse Memory Report

No memory changes detected for:

@gasbytes gasbytes marked this pull request as ready for review May 8, 2026 14:29
@gasbytes
Copy link
Copy Markdown
Contributor Author

gasbytes commented May 8, 2026

Jenkins retest this please

@gasbytes
Copy link
Copy Markdown
Contributor Author

gasbytes commented May 9, 2026

Jenkins retest this please (lost logs)

wolfssl_certmanagerloadcabuffertype to prevent cleanup on an
uninitialized struct on the pem error path.
@gasbytes gasbytes force-pushed the CertManagerLoadCABufferType_MoveXMemset branch from 5c4922c to 66bc5ea Compare May 9, 2026 16:46
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.

1 participant