omicrondelta / atalan

Automatically exported from code.google.com/p/atalan
MIT License
0 stars 0 forks source link

not enough params in proc cal causes segfault #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
:proc a:byte b:byte
        ""

t 4

This segfaults trying to get notexistent variable:

#0  0x0000d90d in VarIsTmp (var=0x0) at variables.c:188
188     return var->name == TMP_NAME;
(gdb) bt
#0  0x0000d90d in VarIsTmp (var=0x0) at variables.c:188
#1  0x0000c32c in PopTop () at parser.c:2416
#2  0x0000c3a1 in ParseCall (proc=0x1153d0) at parser.c:2432
#3  0x0000c5c3 in ParseId () at parser.c:2480
#4  0x0000c8af in ParseCommands () at parser.c:2558
#5  0x0000c99f in Parse (name=0xbfffe6fc "t6", main_file=1) at parser.c:2593
#6  0x0000673b in main (argc=5, argv=0xbffff764) at main.c:172

Original issue reported on code.google.com by jakub.hu...@gmail.com on 3 Sep 2010 at 12:12

GoogleCodeExporter commented 9 years ago

Original comment by rudla.ku...@gmail.com on 14 Sep 2010 at 5:49