[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [FUN] pmain
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 17 Aug 2019 09:21:29 -0300
> > Actually, this code invokes pmain()
>
> And it actually crashes in collectargs() because argv is NULL and there
> are no checks for that. [...] Now, *why* argv is NULL is another question ...
Because pmain is being called in luaD_precall with no upvalues.
The point is that pmain is being called *again*, the second time
without preparation.