[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Specially crafted binary chunks can cause Lua to crash
- From: "Peter Cawley" <lua@...>
- Date: Thu, 27 Mar 2008 16:39:11 +0000
Is the same change needed in the VM's LOADBOOL?
void luaV_execute (lua_State *L, int nexeccalls) {
...
case OP_LOADBOOL: {
setbvalue(ra, GETARG_B(i));
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
On 27/03/2008, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> > And we'll probably fix this
>
>
> Here is the fix:
>
> static void LoadConstants(LoadState* S, Proto* f)
> {
> ...
> case LUA_TBOOLEAN:
> setbvalue(o,LoadChar(S)!=0);
> break;
>
- References:
- Re: Specially crafted binary chunks can cause Lua to crash, Luiz Henrique de Figueiredo
- 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