Skip to content

Commit af6b560

Browse files
committed
add checksig in OP_FORLOOP, see issue cloudwu#568
1 parent 9e90ee2 commit af6b560

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

3rd/lua/lvm.c

+1
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,7 @@ void luaV_execute (lua_State *L) {
12011201
}
12021202
}
12031203
vmcase(OP_FORLOOP) {
1204+
lua_checksig(L);
12041205
if (ttisinteger(ra)) { /* integer loop? */
12051206
lua_Integer step = ivalue(ra + 2);
12061207
lua_Integer idx = intop(+, ivalue(ra), step); /* increment index */

0 commit comments

Comments
 (0)