aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 00:46:25 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 00:46:25 +0000
commit81ea052d25db6aaa2a186405e118a92b30e8875e (patch)
treeefe037b5ed82ca1a42ee52c9473bbbf9ef1a5088 /main/pbx.c
parent825492b7ab84498a5f29652c3fa473fd0c0141f1 (diff)
Merged revisions 173311 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r173311 | tilghman | 2009-02-03 18:43:52 -0600 (Tue, 03 Feb 2009) | 10 lines Ensure that commas placed in the middle of extension character classes do not interfere with correct parsing of the extension. Also, if an unterminated character class DOES make its way into the pbx core (through some other method), ensure that it does not crash Asterisk. (closes issue #14362) Reported by: Nick_Lewis Patches: 20090129__bug14362.diff.txt uploaded by Corydon76 (license 14) Tested by: Corydon76 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@173313 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 9554a004e..4f759a9c0 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1515,6 +1515,9 @@ static struct match_char *add_exten_to_pattern_tree(struct ast_context *con, str
*s2++ = s3;
}
s1++; s1++;
+ } else if (*s1 == '\0') {
+ ast_log(LOG_WARNING, "A matching ']' was not found for '[' in pattern string '%s'\n", extenbuf);
+ break;
} else {
*s2++ = *s1++;
}