mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Make bounds of automatic array constant.
[originally from svn r7503]
This commit is contained in:
parent
f2f717bb47
commit
3814ef0725
3
sshrsa.c
3
sshrsa.c
@ -863,8 +863,9 @@ static void oaep_mask(const struct ssh_hash *h, void *seed, int seedlen,
|
|||||||
while (datalen > 0) {
|
while (datalen > 0) {
|
||||||
int i, max = (datalen > h->hlen ? h->hlen : datalen);
|
int i, max = (datalen > h->hlen ? h->hlen : datalen);
|
||||||
void *s;
|
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);
|
PUT_32BIT(counter, count);
|
||||||
s = h->init();
|
s = h->init();
|
||||||
h->bytes(s, seed, seedlen);
|
h->bytes(s, seed, seedlen);
|
||||||
|
Loading…
Reference in New Issue
Block a user