Fix build stack traceback in DebugLib #7 #16

Merged
Enyby merged 1 commits from patch-8 into master 2018-09-14 10:12:43 +00:00
Enyby commented 2018-09-13 23:13:28 +00:00 (Migrated from github.com)

If create huge table with a lot items (> 28000) then additional op code for store c out of range of op codes and this loop crash.
This PR add case for OP_SETLIST for skip next op if in it stored c.
OP_SETLIST not AMode OP
70cb74b4d6/src/core/org/luaj/vm2/Lua.java (L319)
70cb74b4d6/src/core/org/luaj/vm2/Lua.java (L335)

If create huge table with a lot items (> 28000) then additional op code for store `c` out of range of op codes and this loop crash. This PR add case for OP_SETLIST for skip next op if in it stored `c`. OP_SETLIST not AMode OP https://github.com/luaj/luaj/blob/70cb74b4d65851ef69240d35b58d9f8d20a73ed1/src/core/org/luaj/vm2/Lua.java#L319 https://github.com/luaj/luaj/blob/70cb74b4d65851ef69240d35b58d9f8d20a73ed1/src/core/org/luaj/vm2/Lua.java#L335
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-autonomous-connection/luaj#16