1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix a null-pointer dereference in ecdsa_verifysig.

Bug found with the help of afl-fuzz.
This commit is contained in:
Ben Harris 2015-10-18 18:55:42 +01:00
parent af1460d6e5
commit 12702cb17e

View File

@ -2268,6 +2268,7 @@ static int ecdsa_verifysig(void *key, const char *sig, int siglen,
}
getstring(&sig, &siglen, &p, &slen);
if (!p) return 0;
if (ec->publicKey.curve->type == EC_EDWARDS) {
struct ec_point *r;
Bignum s, h;