Skip to content

Commit

Permalink
fail immediately on an empty signature
Browse files Browse the repository at this point in the history
  • Loading branch information
phelixnmc committed Jan 11, 2015
1 parent 704cc70 commit d7a950f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ class CKey

bool Verify(uint256 hash, const std::vector<unsigned char>& vchSig)
{
if (vchSig.empty())
return false;

// adapted from https://github.com/bitcoin/bitcoin/commit/488ed32f2ada1d1dd108fc245d025c4d5f252783
// New versions of OpenSSL will reject non-canonical DER signatures. de/re-serialize first.
unsigned char *norm_der = NULL;
Expand Down

0 comments on commit d7a950f

Please sign in to comment.