mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 08:52:45 +00:00
fail immediately on an empty signature
Github-Pull: #5634 Rebased-From: 8dccba6a45db0466370726ed462b9da2eae43bce
This commit is contained in:
parent
f047dfa7df
commit
60c51f1c38
@ -227,6 +227,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Verify(const uint256 &hash, const std::vector<unsigned char>& vchSig) {
|
bool Verify(const uint256 &hash, const std::vector<unsigned char>& vchSig) {
|
||||||
|
if (vchSig.empty())
|
||||||
|
return false;
|
||||||
|
|
||||||
// New versions of OpenSSL will reject non-canonical DER signatures. de/re-serialize first.
|
// New versions of OpenSSL will reject non-canonical DER signatures. de/re-serialize first.
|
||||||
unsigned char *norm_der = NULL;
|
unsigned char *norm_der = NULL;
|
||||||
ECDSA_SIG *norm_sig = ECDSA_SIG_new();
|
ECDSA_SIG *norm_sig = ECDSA_SIG_new();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user