artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b4f07
)
2*len -> use xreallocarray()
author
deraadt
<deraadt@openbsd.org>
Fri, 24 Apr 2015 01:36:24 +0000
(
01:36
+0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 24 Apr 2015 01:36:24 +0000
(
01:36
+0000)
ok djm
usr.bin/ssh/uuencode.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/uuencode.c
b/usr.bin/ssh/uuencode.c
index
5b61f01
..
ade379d
100644
(file)
--- a/
usr.bin/ssh/uuencode.c
+++ b/
usr.bin/ssh/uuencode.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: uuencode.c,v 1.2
7 2013/05/17 00:13:14 djm
Exp $ */
+/* $OpenBSD: uuencode.c,v 1.2
8 2015/04/24 01:36:24 deraadt
Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@
-80,7
+80,7
@@
dump_base64(FILE *fp, const u_char *data, u_int len)
fprintf(fp, "dump_base64: len > 65536\n");
return;
}
- buf = x
malloc(2*
len);
+ buf = x
reallocarray(NULL, 2,
len);
n = uuencode(data, len, buf, 2*len);
for (i = 0; i < n; i++) {
fprintf(fp, "%c", buf[i]);