Skip to content

fix to free x509 struct in error case with wolfSSL_PKCS7_get0_signers#9871

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:f296
Mar 5, 2026
Merged

fix to free x509 struct in error case with wolfSSL_PKCS7_get0_signers#9871
douzzer merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:f296

Conversation

@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

F-296

@JacobBarthelmeh JacobBarthelmeh self-assigned this Mar 4, 2026
Copilot AI review requested due to automatic review settings March 4, 2026 23:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an error-path resource leak in wolfSSL_PKCS7_get0_signers by releasing an X509 object when pushing onto the signer stack fails.

Changes:

  • Free x509 when wolfSSL_sk_X509_push(signers, x509) fails to prevent a leak on the error path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@douzzer douzzer added the Staged Staged for merge pending final test results and review label Mar 5, 2026
@douzzer douzzer merged commit ad3ad56 into wolfSSL:master Mar 5, 2026
451 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Staged Staged for merge pending final test results and review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants