projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fedd99b
)
Make bounds of automatic array constant.
author
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 1 May 2007 20:29:11 +0000
(20:29 +0000)
committer
ben
<ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 1 May 2007 20:29:11 +0000
(20:29 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@7503
cda61777
-01e9-0310-a592-
d414129be87e
sshrsa.c
patch
|
blob
|
blame
|
history
diff --git
a/sshrsa.c
b/sshrsa.c
index
6db265e
..
2dc09d1
100644
(file)
--- a/
sshrsa.c
+++ b/
sshrsa.c
@@
-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);