Skip to content

openssl: fix allocate/free mismatch on failure in ssh2_ecdsa_sign() with OpenSSL 3+ - #2547

Closed
vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:ossl-alloc-mixup
Closed

vszakats wants to merge 2 commits into
libssh2:masterfrom
vszakats:ossl-alloc-mixup

Conversation

@vszakats

@vszakats vszakats commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Reported by Copilot
Bug: #2544 (comment)
Follow-up to b0ab005 #1207

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

Aligns OpenSSL 3 ECDSA signing buffers with libssh2’s session allocator.

Changes:

  • Uses SSH2_ALLOC for the temporary signature buffer.
  • Replaces OpenSSL cleanup with explicit zeroing.

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

Comment thread src/openssl.c Resolved
@vszakats vszakats changed the title openssl: fix allocate/free mismatch and double-free in ssh2_ecdsa_sign() with OpenSSL 3+ openssl: fix allocate/free mismatch on failure in ssh2_ecdsa_sign() with OpenSSL 3+ Aug 27, 2026
@vszakats
vszakats requested a balanced review from Copilot August 27, 2026 20:19

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in 7582420 Aug 27, 2026
@vszakats
vszakats deleted the ossl-alloc-mixup branch August 27, 2026 20:53
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.

2 participants