[asterisk-bugs] [JIRA] (ASTERISK-22416) Segmentation fault (in process_applicationmap_line, at features.c) when using improper feature mapping syntax

CGI.NET (JIRA) noreply at issues.asterisk.org
Wed Aug 28 21:45:04 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209732#comment-209732 ] 

CGI.NET commented on ASTERISK-22416:
------------------------------------

Michael L. Young:
I delete my path, but the difference is:
+ 	
+ 	activateon = strsep(&args.activatedby, "/");
+     
+ 	if (ast_strlen_zero(args.app)
+                || ast_strlen_zero(args.exten)
+                || ast_strlen_zero(activateon)
+                || ast_strlen_zero(var->name)) {
+                ast_log(LOG_NOTICE,
+                        "Please check the feature Mapping Syntax, either extension, name, or app aren't provided %s %s %s %s\n",
+                        args.app, args.exten, activateon, var->name);
+                return;
+        }
+
                
> Segmentation fault (in process_applicationmap_line, at features.c) when using improper feature mapping syntax
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-22416
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22416
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_features
>    Affects Versions: 1.8.23.0, 11.4.0
>         Environment: Centos 6.4
> Linux 2.6.32-358.11.1.el6.i686 #1 SMP Wed Jun 12 01:01:27 UTC 2013 i686 i686 i386 GNU/Linux
>            Reporter: CGI.NET
>         Attachments: asterisk-22416-dynamic-feature-check-syntax-first.diff, backtrace.txt, features_fixed.c
>
>
> In features.conf
> I set the error syntax look like
> [applicationmap]
> automon=*6
> when restart asterisk will crash and see 'Segmentation fault'.
> normal
> [applicationmap]
> automon=*6,self/both,AGI,agi://127.0.0.1/automon
> is ok.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list