[openssh-commits] [openssh] 01/01: upstream: Always initialize delim before passing to hpdelim2 which

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Feb 11 12:17:17 AEDT 2022


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 50b9e4a4514697ffb9592200e722de6b427cb9ff
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Fri Feb 11 00:43:56 2022 +0000

    upstream: Always initialize delim before passing to hpdelim2 which
    
    might not set it. Found by the Valgrind tests on github, ok deraadt@
    
    OpenBSD-Commit-ID: c830c0db185ca43beff3f41c19943c724b4f636d
---
 misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc.c b/misc.c
index dd1922e9..417498de 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.173 2022/02/08 08:59:12 dtucker Exp $ */
+/* $OpenBSD: misc.c,v 1.174 2022/02/11 00:43:56 dtucker Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2005-2020 Damien Miller.  All rights reserved.
@@ -723,7 +723,7 @@ hpdelim2(char **cp, char *delim)
 char *
 hpdelim(char **cp)
 {
-	char *r, delim;
+	char *r, delim = '\0';
 
 	r =  hpdelim2(cp, &delim);
 	if (delim == '/')

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list