diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-23 21:06:40 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-23 21:06:40 +0000 |
commit | 9ec4987d3bf744a3bc70e27737f3ee2235e91a51 (patch) | |
tree | 420b6c5eb99ef22cb101de502b353ea19a95a478 /res/ael/ael.flex | |
parent | 90c850b5b14eebdee1e9f9779abe6c059df78ade (diff) |
Ensure a NULL file while debugging cannot crash AEL.
(closes issue #17215)
Reported by: vazir
Patches:
20100518__issue17215.diff.txt uploaded by tilghman (license 14)
Tested by: tilghman
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@272260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ael/ael.flex')
-rw-r--r-- | res/ael/ael.flex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/ael/ael.flex b/res/ael/ael.flex index 0674ba8ff..4d441fb73 100644 --- a/res/ael/ael.flex +++ b/res/ael/ael.flex @@ -887,7 +887,7 @@ static void setup_filestack(char *fnamebuf2, int fnamebuf_siz, glob_t *globbuf, free(include_stack[include_stack_index].fname); include_stack[include_stack_index].fname = 0; } - include_stack[include_stack_index].fname = strdup(my_file); + include_stack[include_stack_index].fname = strdup(S_OR(my_file, "<none>")); include_stack[include_stack_index].lineno = my_lineno; include_stack[include_stack_index].colno = my_col+yyleng; if (my_file) |