[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Maybe a bug in lundump.c
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 19 Mar 2014 07:47:41 -0300
> In function : void LoadConstants(LoadState* S, Proto* f)
>
> If the constant is string, it will be call setsvalue2n .
>
> case LUA_TSTRING:
> setsvalue2n(S->L,o,LoadString(S));
>
> and setsvalue2n crashes if LoadString(S) return NULL.
LoadString should never return NULL when called from LoadConstants.
There is only one case when LoadString returns NULL: for the chunck source,
when debug info has been stripped.