-
- Downloads
Merged revisions 84511 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84511 | murf | 2007-10-03 08:23:00 -0600 (Wed, 03 Oct 2007) | 1 line closes issue #10834 ; where a null input to a switch statement results in a hangup; since switch is implemented with extensions, and the default case is implemented with a '.', and the '.' matches 1 or more remaining characters, the case where 0 characters exist isn't matched, and the extension isn't matched, and the goto fails, and a hangup occurs. Now, when a default case is generated, it also generates a single fixed extension that will match a null input. That extension just does a goto to the default extension for that switch. I played with an alternate solution, where I just tack an extra char onto all the patterns and the goto, but not the default case's pattern. Then even a null input will still have at least one char in it. But it made me nervous, having that extra char in , even if that's a pretty secret and low-level issue. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- pbx/ael/ael-test/ref.ael-ntest10 35 additions, 25 deletionspbx/ael/ael-test/ref.ael-ntest10
- pbx/ael/ael-test/ref.ael-test1 15 additions, 15 deletionspbx/ael/ael-test/ref.ael-test1
- pbx/ael/ael-test/ref.ael-test18 8 additions, 8 deletionspbx/ael/ael-test/ref.ael-test18
- pbx/ael/ael-test/ref.ael-test19 15 additions, 15 deletionspbx/ael/ael-test/ref.ael-test19
- pbx/ael/ael-test/ref.ael-test3 1 addition, 1 deletionpbx/ael/ael-test/ref.ael-test3
- pbx/ael/ael-test/ref.ael-test5 11 additions, 11 deletionspbx/ael/ael-test/ref.ael-test5
- pbx/ael/ael-test/ref.ael-test8 8 additions, 8 deletionspbx/ael/ael-test/ref.ael-test8
- pbx/ael/ael-test/ref.ael-vtest13 76 additions, 0 deletionspbx/ael/ael-test/ref.ael-vtest13
- pbx/ael/ael-test/ref.ael-vtest17 1 addition, 0 deletionspbx/ael/ael-test/ref.ael-vtest17
- res/ael/pval.c 23 additions, 4 deletionsres/ael/pval.c
Loading
Please register or sign in to comment