Skip to content

Fix panic when verifying an empty signature. Add test case#18

Merged
noot merged 2 commits intoChainSafe:mainfrom
bernardo-xxnet:fix/zero-len-sig
Oct 21, 2022
Merged

Fix panic when verifying an empty signature. Add test case#18
noot merged 2 commits intoChainSafe:mainfrom
bernardo-xxnet:fix/zero-len-sig

Conversation

@bernardo-xxnet
Copy link
Copy Markdown
Contributor

Changes

Added a check for empty signature to verify and verify_no_consensus.
Both functions were panicking due to accessing byte 0 of the signature to determine the params to use.

Tests

Added a test case that verifies an empty signature.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 21, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@noot noot left a comment

Choose a reason for hiding this comment

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

looks good!

@noot noot merged commit 9cbfad0 into ChainSafe:main Oct 21, 2022
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.

3 participants