1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Make bounds of automatic array constant.

[originally from svn r7503]
This commit is contained in:
Ben Harris 2007-05-01 20:29:11 +00:00
parent f2f717bb47
commit 3814ef0725

View File

@ -863,8 +863,9 @@ static void oaep_mask(const struct ssh_hash *h, void *seed, int seedlen,
while (datalen > 0) {
int i, max = (datalen > h->hlen ? h->hlen : datalen);
void *s;
unsigned char counter[4], hash[h->hlen];
unsigned char counter[4], hash[SSH2_KEX_MAX_HASH_LEN];
assert(h->hlen <= SSH2_KEX_MAX_HASH_LEN);
PUT_32BIT(counter, count);
s = h->init();
h->bytes(s, seed, seedlen);