[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [FUN] pmain
- From: Sean Conner <sean@...>
- Date: Sat, 17 Aug 2019 06:06:47 -0400
It was thus said that the Great Egor Skriptunoff once stated:
> [FUN] here means both "fun" and "function" :-)
>
> function segfault()
> for k = 1, 1/0 do
> x = debug.getinfo(k) or x.func()
> end
> end
>
> Actually, this code invokes pmain()
And it actually crashes in collectargs() because argv is NULL and there
are no checks for that. This also happens in Lua 5.1 and 5.2 as well. Now,
*why* argv is NULL is another question ...
-spc