Skip to content

mbedtls: fix mismatched alloc/free in ssh2_ecdsa_sign() - #2552

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:mbed-alloc-mismatch
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:mbed-alloc-mismatch

Conversation

@vszakats

Copy link
Copy Markdown
Member

Follow-up to f7fa81c #2196
Follow-up to 5528f3d #385

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

Fixes allocator mismatch in the mbedTLS ECDSA signing cleanup path.

Changes:

  • Frees the SSH2_CALLOC buffer using the session allocator.
  • Retains secure zeroing before release.

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

@vszakats vszakats closed this in 62a2a7e Aug 28, 2026
@vszakats
vszakats deleted the mbed-alloc-mismatch branch August 28, 2026 00:14
vszakats added a commit that referenced this pull request Aug 28, 2026
Only a single caller remained after recent updates.

Follow-up to 62a2a7e #2552
Follow-up to 420dbba #2550

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants