]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: identity_file[] should be PATH_MAX, not the arbitrary
authorderaadt@openbsd.org <deraadt@openbsd.org>
Tue, 24 Sep 2019 12:50:46 +0000 (12:50 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 1 Oct 2019 10:24:07 +0000 (20:24 +1000)
number 1024

OpenBSD-Commit-ID: e775f94ad47ce9ab37bd1410d7cf3b7ea98b11b7

ssh-keygen.c

index 0dfad08c4bc9c0688a5a968a768f18dba05a6bb3..4b58ddaeea88e20bc6d9de46aa2a87bbfdb146f6 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.350 2019/09/16 03:23:02 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.351 2019/09/24 12:50:46 deraadt Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -93,7 +93,7 @@ static int print_bubblebabble = 0;
 static int fingerprint_hash = SSH_FP_HASH_DEFAULT;
 
 /* The identity file name, given on the command line or entered by the user. */
-static char identity_file[1024];
+static char identity_file[PATH_MAX];
 static int have_identity = 0;
 
 /* This is set to the passphrase if given on the command line. */