diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-07-10 08:59:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-07-10 08:59:06 -0300 |
commit | 5a761e3a1519eae7264209db8257b040c77556aa (patch) | |
tree | fab94180320f4a6548f35871bc913fd8d47d4881 /ldebug.c | |
parent | 265530478bf4db5c1404a60acede1befb7fc48f8 (diff) | |
download | lua-5a761e3a1519eae7264209db8257b040c77556aa.tar.gz lua-5a761e3a1519eae7264209db8257b040c77556aa.tar.bz2 lua-5a761e3a1519eae7264209db8257b040c77556aa.zip |
opcode number may be invalid
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: { |