[openssh-commits] [openssh] 15/25: upstream commit
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Apr 29 19:54:55 AEST 2015
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 8ac2ffd7aa06042f6b924c87139f2fea5c5682f7
Author: deraadt at openbsd.org <deraadt at openbsd.org>
Date: Fri Apr 24 01:36:24 2015 +0000
upstream commit
2*len -> use xreallocarray() ok djm
---
uuencode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/uuencode.c b/uuencode.c
index 294c743..7fc867a 100644
--- a/uuencode.c
+++ b/uuencode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uuencode.c,v 1.27 2013/05/17 00:13:14 djm Exp $ */
+/* $OpenBSD: uuencode.c,v 1.28 2015/04/24 01:36:24 deraadt Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -82,7 +82,7 @@ dump_base64(FILE *fp, const u_char *data, u_int len)
fprintf(fp, "dump_base64: len > 65536\n");
return;
}
- buf = xmalloc(2*len);
+ buf = xreallocarray(NULL, 2, len);
n = uuencode(data, len, buf, 2*len);
for (i = 0; i < n; i++) {
fprintf(fp, "%c", buf[i]);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list