From: dtucker@openbsd.org Date: Fri, 15 Jan 2021 04:31:25 +0000 (+0000) Subject: upstream: Make output buffer larger to prevent potential truncation X-Git-Tag: V_8_5_P1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bde1a420626da5007bf7ab499fa2159b9eddf72;p=thirdparty%2Fopenssh-portable.git upstream: Make output buffer larger to prevent potential truncation warnings from compilers not smart enough to know the strftime calls won't ever fully fill "to" and "from". ok djm@ OpenBSD-Commit-ID: 83733f1b01b82da88b9dd1769475952aff10bdd7 --- diff --git a/sshkey.c b/sshkey.c index 938fa0d7c..d195a593d 100644 --- a/sshkey.c +++ b/sshkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.c,v 1.112 2020/10/19 22:49:23 dtucker Exp $ */ +/* $OpenBSD: sshkey.c,v 1.113 2021/01/15 04:31:25 dtucker Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. * Copyright (c) 2008 Alexander von Gernler. All rights reserved. @@ -3134,7 +3134,7 @@ sshkey_cert_check_authority(const struct sshkey *k, size_t sshkey_format_cert_validity(const struct sshkey_cert *cert, char *s, size_t l) { - char from[32], to[32], ret[64]; + char from[32], to[32], ret[128]; time_t tt; struct tm *tm;