[augeas-devel] augeas: master - * src/pathx.c (parse_name): do not allow ')' in names
David Lutterkort
lutter at fedoraproject.org
Thu Feb 19 20:05:46 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=141b9b085d0013df0ddf188f8ca52eabcd864a55
Commit: 141b9b085d0013df0ddf188f8ca52eabcd864a55
Parent: 317ff153d2173fb503f70433da1972a3e7ac2b06
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Wed Feb 18 11:42:19 2009 -0800
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Feb 18 14:58:45 2009 -0800
* src/pathx.c (parse_name): do not allow ')' in names
Names can not contain ')', otherwise we will run beyond the end of
arguments in a function call like 'f(name)'
---
src/pathx.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/pathx.c b/src/pathx.c
index ef41a80..09374e1 100644
--- a/src/pathx.c
+++ b/src/pathx.c
@@ -917,6 +917,7 @@ static char *parse_name(struct state *state) {
while (*state->pos != '\0' &&
*state->pos != L_BRACK && *state->pos != SEP &&
*state->pos != R_BRACK && *state->pos != '=' &&
+ *state->pos != ')' &&
!isspace(*state->pos)) {
if (*state->pos == '\\') {
state->pos += 1;
More information about the augeas-devel
mailing list