~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tighten up a lot of casts from unsigned to int which are read by one
[sgt/putty]
/
sshrsa.c
diff --git
a/sshrsa.c
b/sshrsa.c
index
163a92b
..
6403343
100644
(file)
--- a/
sshrsa.c
+++ b/
sshrsa.c
@@
-525,7
+525,7
@@
static void getstring(char **data, int *datalen, char **p, int *length)
*p = NULL;
if (*datalen < 4)
return;
- *length =
GET_32BIT(*data
);
+ *length =
toint(GET_32BIT(*data)
);
if (*length < 0)
return;
*datalen -= 4;