projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix off-by-one in memory management of PPK reading routine, which could cause
[u/mdw/putty]
/
sshpubk.c
diff --git
a/sshpubk.c
b/sshpubk.c
index
166afbc
..
bdd1a22
100644
(file)
--- a/
sshpubk.c
+++ b/
sshpubk.c
@@
-514,7
+514,7
@@
static char *read_body(FILE * fp)
sfree(text);
return NULL;
}
- if (len + 1 > size) {
+ if (len + 1 >
=
size) {
size += 128;
text = sresize(text, size, char);
}