Re: Memory corruption in in luaV_execute (lua/Test_lua/lua/lvm.c:1784)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Memory corruption in in luaV_execute (lua/Test_lua/lua/lvm.c:1784)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2020年8月31日 07:27:52 -0300
> > v55 = string.dump(v19)
> > v56 = string.format(v55,v16,v6)
> > v58 = load(v56)
>
> This dumps the byte code of v19, then potentially mutilates the dump,
> then tries to load the potentially malformed byte code. Which, per the
> documentation, "can crash the interpreter".
Loading malformed bytecode should not crash Lua.
Running maliciously crafted bytecode can crash the interpreter.