Skip to content

schannel: clear PFX password before free - #22721

Closed
martin-fzi wants to merge 1 commit into
curl:masterfrom
martin-fzi:schannel-clear-pfx-password
Closed

martin-fzi wants to merge 1 commit into
curl:masterfrom
martin-fzi:schannel-clear-pfx-password

Conversation

@martin-fzi

Copy link
Copy Markdown

The temporary UTF-16 password used for PFX import was freed without being cleared.
Zero the buffer before freeing it to reduce the lifetime of sensitive credential data.

@github-actions github-actions Bot added TLS Windows Windows-specific labels Aug 28, 2026
@vszakats
vszakats requested a balanced review from Copilot August 28, 2026 12:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Clears the temporary UTF-16 PFX password before releasing its memory.

Changes:

  • Zeroes the full password buffer before freeing it.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bagder bagder closed this in bd81f15 Aug 28, 2026
@bagder

bagder commented Aug 28, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TLS Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

3 participants