1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Add some missing bounds checks in signature verification routines.

[originally from svn r9978]
This commit is contained in:
Simon Tatham
2013-08-02 06:27:56 +00:00
parent e01104f899
commit 6184e9f95d
2 changed files with 5 additions and 0 deletions

View File

@ -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;