[openssh-commits] [openssh] 07/07: upstream commit
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Oct 14 08:29:16 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 8f22911027ff6c17d7226d232ccd20727f389310
Author: Damien Miller <djm at mindrot.org>
Date: Wed Oct 14 08:28:19 2015 +1100
upstream commit
revision 1.20
date: 2015/10/13 20:55:37; author: millert; state: Exp; lines: +2 -2; commitid: X39sl5ay1czgFIgp;
In rev 1.15 the sizeof argument was fixed in a strlcat() call but
the truncation check immediately following it was not updated to
match. Not an issue in practice since the buffers are the same
size. OK deraadt@
---
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 a6ac09b..a0199ab 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: realpath.c,v 1.19 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: realpath.c,v 1.20 2015/10/13 20:55:37 millert Exp $ */
/*
* Copyright (c) 2003 Constantin S. Svintsoff <kostik at iclub.nsu.ru>
*
@@ -200,7 +200,7 @@ realpath(const char *path, char *resolved)
symlink[slen + 1] = 0;
}
left_len = strlcat(symlink, left, sizeof(symlink));
- if (left_len >= sizeof(left)) {
+ if (left_len >= sizeof(symlink)) {
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