[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Specially crafted binary chunks can cause Lua to crash
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 27 Mar 2008 15:31:29 -0300
> I also don't understand why LOADK can load boolean values (taking up a
> slot in the constant table in the process) when LOADBOOL exists
Lua never generates LOADK for a boolean value; it uses LOADBOOL.
However, the presence of booleans in the 'k' array allows some simple
optimizations, such as the use of a single opcode for things like
a[true] = 10 or a[i] = false.
-- Roberto
- References:
- Re: Specially crafted binary chunks can cause Lua to crash, Roberto Ierusalimschy
- Re: Specially crafted binary chunks can cause Lua to crash, Peter Cawley
- Re: Specially crafted binary chunks can cause Lua to crash, Roberto Ierusalimschy
- Re: Specially crafted binary chunks can cause Lua to crash, Peter Cawley
- Re: Specially crafted binary chunks can cause Lua to crash, Greg Falcon
- Re: Specially crafted binary chunks can cause Lua to crash, Luiz Henrique de Figueiredo
- Re: Specially crafted binary chunks can cause Lua to crash, Ben Sunshine-Hill
- Re: Specially crafted binary chunks can cause Lua to crash, Luiz Henrique de Figueiredo
- Re: Specially crafted binary chunks can cause Lua to crash, Luiz Henrique de Figueiredo
- Re: Specially crafted binary chunks can cause Lua to crash, Peter Cawley