lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>I'm running into a crash in "luac -s".

Here is a patch. Sorry for the oversight. Thanks for the report. --lhf

luac.c
153c153
<  f->upvalues=NULL;
---
>  f->upvalues=NULL; f->sizeupvalues=0;

print.c
100c100
<     printf("\t; %s",getstr(f->upvalues[b]));
---
>     printf("\t; %s", (f->sizeupvalues>0) ? getstr(f->upvalues[b]) : "-");