From 5a761e3a1519eae7264209db8257b040c77556aa Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 10 Jul 2003 08:59:06 -0300 Subject: opcode number may be invalid --- ldebug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldebug.c b/ldebug.c index cae7e8d7..bc7f9237 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.152 2003/05/13 20:15:59 roberto Exp roberto $ +** $Id: ldebug.c,v 1.153 2003/05/14 12:09:12 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -320,6 +320,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { int a = GETARG_A(i); int b = 0; int c = 0; + check(op < NUM_OPCODES); checkreg(pt, a); switch (getOpMode(op)) { case iABC: { -- cgit v1.2.3-55-g6feb