Skip to content

Fix incorrect argument being passed to wc_InitDecodedCert.#1080

Open
kareem-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
kareem-wolfssl:zd22073
Open

Fix incorrect argument being passed to wc_InitDecodedCert.#1080
kareem-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
kareem-wolfssl:zd22073

Conversation

@kareem-wolfssl

Copy link
Copy Markdown
Contributor

Should be the heap rather than the CM.

Thanks to Asif Nadaf for the report.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes a bug in certificate verification where wc_InitDecodedCert() was being given the cert manager pointer (cm->cm) instead of the allocator heap (cm->heap), aligning this call site with other DecodedCert initialization in the codebase.

Changes:

  • Update wolfSSH_CERTMAN_VerifyCerts_buffer() (FPKI leaf checking path) to pass cm->heap to wc_InitDecodedCert().

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

…the heap rather than the CM.

Reported-by: Asif Nadaf <postasif@protonmail.com>
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.

4 participants