diff options
author | Damien Miller <djm@mindrot.org> | 2015-10-14 08:28:19 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-10-14 08:28:19 +1100 |
commit | 8f22911027ff6c17d7226d232ccd20727f389310 (patch) | |
tree | b354de111de0136dd19893fc39e64520c649834e /openbsd-compat/realpath.c | |
parent | 23fa695bb735f54f04d46123662609edb6c76767 (diff) |
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@
Diffstat (limited to 'openbsd-compat/realpath.c')
-rw-r--r-- | openbsd-compat/realpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c index a6ac09ba5..a0199ab34 100644 --- a/openbsd-compat/realpath.c +++ b/openbsd-compat/realpath.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: realpath.c,v 1.19 2015/01/16 16:48:51 deraadt Exp $ */ | 1 | /* $OpenBSD: realpath.c,v 1.20 2015/10/13 20:55:37 millert Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2003 Constantin S. Svintsoff <kostik@iclub.nsu.ru> | 3 | * Copyright (c) 2003 Constantin S. Svintsoff <kostik@iclub.nsu.ru> |
4 | * | 4 | * |
@@ -200,7 +200,7 @@ realpath(const char *path, char *resolved) | |||
200 | symlink[slen + 1] = 0; | 200 | symlink[slen + 1] = 0; |
201 | } | 201 | } |
202 | left_len = strlcat(symlink, left, sizeof(symlink)); | 202 | left_len = strlcat(symlink, left, sizeof(symlink)); |
203 | if (left_len >= sizeof(left)) { | 203 | if (left_len >= sizeof(symlink)) { |
204 | errno = ENAMETOOLONG; | 204 | errno = ENAMETOOLONG; |
205 | goto err; | 205 | goto err; |
206 | } | 206 | } |