summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-07-10 08:59:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-07-10 08:59:06 -0300
commit5a761e3a1519eae7264209db8257b040c77556aa (patch)
treefab94180320f4a6548f35871bc913fd8d47d4881 /ldebug.c
parent265530478bf4db5c1404a60acede1befb7fc48f8 (diff)
downloadlua-5a761e3a1519eae7264209db8257b040c77556aa.tar.gz
lua-5a761e3a1519eae7264209db8257b040c77556aa.tar.bz2
lua-5a761e3a1519eae7264209db8257b040c77556aa.zip
opcode number may be invalid
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index cae7e8d7..bc7f9237 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.152 2003/05/13 20:15:59 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.153 2003/05/14 12:09:12 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -320,6 +320,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
320 int a = GETARG_A(i); 320 int a = GETARG_A(i);
321 int b = 0; 321 int b = 0;
322 int c = 0; 322 int c = 0;
323 check(op < NUM_OPCODES);
323 checkreg(pt, a); 324 checkreg(pt, a);
324 switch (getOpMode(op)) { 325 switch (getOpMode(op)) {
325 case iABC: { 326 case iABC: {