Comments (2)
case OP_SETLIST:
{
if (c==0) {
Instruction i_next_arg = code[++pc];
#if LUA_VERSION_NUM == 501
c = i_next_arg;
#endif
#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503
if (GET_OPCODE(i_next_arg) == OP_EXTRAARG) {
c = GETARG_Ax(i_next_arg);
} else {
SET_ERROR(F, "SETLIST with c==0, but not followed by EXTRAARG.");
}
#endif
}
TRY(SetList(F, a, b, c));
break;
}
from luadec.
add test cases:
issue41_gen_large_table.lua
-- setlist c=0 when top>=25550
-- loadkx and extraarg when top>=2^18
print("local x={")
local top = arg[1] or 2^18
local count = 0
for i = 0, top do
io.stdout:write(i,",")
count = count + 1
if count == 20 then
io.stdout:write("\n")
count = 0
end
end
if count ~= 0 then
io.stdout:write("\n")
end
print("}")
lua issue41_gen_large_table.lua 25550 > issue41_setlist0.lua
lua issue41_gen_large_table.lua 262142 > issue41_51_most_const.lua
lua issue41_gen_large_table.lua 262144 > issue41_loadkx.lua
lua issue41_gen_large_table.lua 262143 lua51 cannot process but lua52 53 gen without loadkx
from luadec.
Related Issues (20)
- cannot success work when luac debug infor is stripped HOT 1
- ProcessCode: Assertion `0' failed. HOT 1
- There is something error when try to decompiling lua 5.1 file HOT 1
- Lua 5.3 decompile issue HOT 1
- OP_CLOSURE decompiles incorrectly if Lua uses non-standard opcode order
- lua5.3 decompilation special case issue HOT 6
- <builtin>: recipe for target 'luaopswap.o' failed make: *** [luaopswap.o] Error 1
- allopcodes-5.2.lua HOT 1
- Command 'luadec' not found on linux
- Segfault on lua5.3
- support lua 5.1 N64 NSO Switch HOT 1
- Heap-buffer-overflow in UnsetPending
- Lua 5.4 support please!
- make error HOT 3
- Provide releases for the most common build targets
- clang-14: error: no such file or directory: '../lua-5.1/src/liblua.a'
- Bad constant in precompiled chunk HOT 1
- mismatch in precompiled chunk
- bad header in precompiled chunk HOT 4
- Please provide releases! HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luadec.