mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-23 15:09:24 -05:00
Fix a null-pointer dereference in ecdsa_verifysig.
Bug found with the help of afl-fuzz.
This commit is contained in:
parent
af1460d6e5
commit
12702cb17e
1
sshecc.c
1
sshecc.c
@ -2268,6 +2268,7 @@ static int ecdsa_verifysig(void *key, const char *sig, int siglen,
|
|||||||
}
|
}
|
||||||
|
|
||||||
getstring(&sig, &siglen, &p, &slen);
|
getstring(&sig, &siglen, &p, &slen);
|
||||||
|
if (!p) return 0;
|
||||||
if (ec->publicKey.curve->type == EC_EDWARDS) {
|
if (ec->publicKey.curve->type == EC_EDWARDS) {
|
||||||
struct ec_point *r;
|
struct ec_point *r;
|
||||||
Bignum s, h;
|
Bignum s, h;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user