[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [NoW] Luac crashes when trying to display undefined instruction
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Fri, 25 Jan 2019 09:08:09 +0300
On Fri, Jan 25, 2019 at 1:42 AM Luiz Henrique de Figueiredo wrote:
> The crash could be reproduced on any Luac version.
> For example, to create such bytecode for little-endian Luac 5.3, it is enough to replace the "return" instruction with reserved opcode=63
Ok, the problem is the following line in PrintCode, which only works
if o < NUM_OPCODES :
Yes, that's array index out of bounds error.
Could you please fix it in Luac?
(for example, to display opcode when opname doesn't exist)