[openssh-commits] [openssh] 02/07: upstream commit
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Oct 14 08:29:11 AEDT 2015
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 5225db68e58a1048cb17f0e36e0d33bc4a8fc410
Author: Damien Miller <djm at mindrot.org>
Date: Wed Oct 14 08:25:32 2015 +1100
upstream commit
revision 1.15
date: 2012/09/13 15:39:05; author: deraadt; state: Exp; lines: +2 -2;
specify the bounds of the dst to strlcat (both values were static and
equal, but it is more correct)
from Michal Mazurek
---
openbsd-compat/realpath.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c
index 6646330..f2083e0 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: realpath.c,v 1.14 2011/07/24 21:03:00 miod Exp $ */
+/* $OpenBSD: realpath.c,v 1.15 2012/09/13 15:39:05 deraadt Exp $ */
/*
* Copyright (c) 2003 Constantin S. Svintsoff <kostik at iclub.nsu.ru>
*
@@ -196,7 +196,7 @@ realpath(const char *path, char *resolved)
symlink[slen] = '/';
symlink[slen + 1] = 0;
}
- left_len = strlcat(symlink, left, sizeof(left));
+ left_len = strlcat(symlink, left, sizeof(symlink));
if (left_len >= sizeof(left)) {
errno = ENAMETOOLONG;
goto err;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list