[asterisk-bugs] [JIRA] (ASTERISK-26711) ENUM code wrong case
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Wed Jan 11 05:06:10 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-26711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234570#comment-234570 ]
Asterisk Team commented on ASTERISK-26711:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> ENUM code wrong case
> --------------------
>
> Key: ASTERISK-26711
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26711
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Functions/func_enum
> Affects Versions: 14.2.1
> Environment: Debian
> Reporter: Vitold
> Severity: Trivial
>
> Source code main/enum.c:500
> {code}
> delim = regexp[0];
> delim2 = strchr(regexp + 1, delim);
> if ((delim2 == NULL) || (regexp[regexp_len - 1] != delim)) { /* is the second delimiter found, and is the end of the regexp a delimiter */
> ast_log(LOG_WARNING, "Regex delimiter error (on \"%s\").\n", regexp);
> return -1;
> } else if (strchr((delim2 + 1), delim) == NULL) { /* if the second delimiter is found, make sure there is a third instance. this could be the end one instead of the middle */
> ast_log(LOG_WARNING, "Regex delimiter error (on \"%s\").\n", regexp);
> return -1;
> }
> {code}
> Please trace your code with regexp: "!^.+$!sip:sip at sipnet.ru!i"
> Last regexp "i" make this regular expression parser incorrect.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list