[Asterisk-Dev] cvs coredump

Andre Bierwirth asterisk at kmb.de
Fri Apr 4 22:35:59 MST 2003


Is a missing param check for "add extension".

Andre

----- Original Message -----
From: "Jared Mauch" <jared at puck.nether.net>
To: <asterisk-dev at lists.digium.com>
Sent: Friday, April 04, 2003 10:00 PM
Subject: [Asterisk-Dev] cvs coredump


>
> latest cvs, grabbed a few mins ago:
>
> while trying to add a user via:
>
> "add extension 1005 into default"
>
> i got this error
>
> Segmentation fault (core dumped)
>
> #0  0x41d548c2 in handle_context_add_extension (fd=1, argc=5,
argv=0xbffff530)
>     at pbx_config.c:1087
> 1087            if (!strcmp(prior, "hint")) {
> (gdb) print prior
> No symbol "prior" in current context.
> (gdb) print *prior
> No symbol "prior" in current context.
> (gdb) print argv
> $1 = (char **) 0xbffff530
> (gdb) print *argv
> $2 = 0x810ca70 "add"
> (gdb) list
> 1082                    strsep(&cidmatch,"/");
> 1083            } else {
> 1084                    cidmatch = NULL;
> 1085            }
> 1086            prior       = strsep(&whole_exten,",");
> 1087            if (!strcmp(prior, "hint")) {
> 1088                iprior = PRIORITY_HINT;
> 1089            } else {
> 1090                iprior = atoi(prior);
> 1091            }
> (gdb) print whole_exten
> $3 = 0x0
>
> seems to be a null check missing there :)
>
> - jared
>
>
> --
> Jared Mauch  | pgp key available via finger from jared at puck.nether.net
> clue++;      | http://puck.nether.net/~jared/  My statements are only
mine.
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asterisk-addexten.fix
Type: application/octet-stream
Size: 1134 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20030404/f48cdf1f/asterisk-addexten.obj


More information about the asterisk-dev mailing list