mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Add some missing bounds checks in signature verification routines.
[originally from svn r9978]
This commit is contained in:
parent
e01104f899
commit
6184e9f95d
3
sshdss.c
3
sshdss.c
@ -72,6 +72,9 @@ static Bignum get160(char **data, int *datalen)
|
||||
{
|
||||
Bignum b;
|
||||
|
||||
if (*datalen < 20)
|
||||
return NULL;
|
||||
|
||||
b = bignum_from_bytes((unsigned char *)*data, 20);
|
||||
*data += 20;
|
||||
*datalen -= 20;
|
||||
|
Loading…
Reference in New Issue
Block a user