mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
upstream commit
Increase the buffer sizes for user prompts to ensure that they won't be truncated by snprintf. Based on patch from cjwatson at debian.org via bz#2768, ok djm@ Upstream-ID: 6ffacf1abec8f40b469de5b94bfb29997d96af3e
This commit is contained in:
parent
dd9d9b3381
commit
a54eb27dd6
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sshconnect2.c,v 1.265 2017/08/11 04:47:12 djm Exp $ */
|
/* $OpenBSD: sshconnect2.c,v 1.266 2017/08/27 00:38:41 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
* Copyright (c) 2008 Damien Miller. All rights reserved.
|
* Copyright (c) 2008 Damien Miller. All rights reserved.
|
||||||
@ -895,7 +895,7 @@ int
|
|||||||
userauth_passwd(Authctxt *authctxt)
|
userauth_passwd(Authctxt *authctxt)
|
||||||
{
|
{
|
||||||
static int attempt = 0;
|
static int attempt = 0;
|
||||||
char prompt[150];
|
char prompt[256];
|
||||||
char *password;
|
char *password;
|
||||||
const char *host = options.host_key_alias ? options.host_key_alias :
|
const char *host = options.host_key_alias ? options.host_key_alias :
|
||||||
authctxt->host;
|
authctxt->host;
|
||||||
@ -935,7 +935,7 @@ input_userauth_passwd_changereq(int type, u_int32_t seqnr, struct ssh *ssh)
|
|||||||
{
|
{
|
||||||
Authctxt *authctxt = ssh->authctxt;
|
Authctxt *authctxt = ssh->authctxt;
|
||||||
char *info, *lang, *password = NULL, *retype = NULL;
|
char *info, *lang, *password = NULL, *retype = NULL;
|
||||||
char prompt[150];
|
char prompt[256];
|
||||||
const char *host;
|
const char *host;
|
||||||
|
|
||||||
debug2("input_userauth_passwd_changereq");
|
debug2("input_userauth_passwd_changereq");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user