Skip to content

Fix incorrect error path in ecc_sign_hash_internal.c - #816

Open
headscott wants to merge 1 commit into
libtom:developfrom
headscott:fix/801-fix-error-path-ecc-sign-hash
Open

headscott wants to merge 1 commit into
libtom:developfrom
headscott:fix/801-fix-error-path-ecc-sign-hash

Conversation

@headscott

Copy link
Copy Markdown

Description

This pull request fixes an incorrect error handling path in ecc_sign_hash_internal.c mentioned in #801.

When the input buffer exceeds MAXBLOCKSIZE, the code previously jumped to the error label, potentially causing ecc_free to operate on an uninitialized pubkey.

The error path has been corrected to jump to errnokey instead, avoiding cleanup of an uninitialized key.

Closes #801

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.

Fix incorrect error path in ecc_sign_hash_internal.c

1 participant