[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: [FUN] pmain
From:       Luiz Henrique de Figueiredo <lhf () tecgraf ! puc-rio ! br>
Date:       2019-08-17 12:21:29
Message-ID: CAD55k3oMCTuqyQ_NeQhX44FHB8wOzA+G7oq7xnY4C7kdZ___Qg () mail ! gmail ! com
[Download RAW message or body]

> > 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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic