luadec
luadec copied to clipboard
Lua Decompiler for lua 5.1 , 5.2 and 5.3
clang cannot find the liblua.a
[luadec-aarm64.zip](https://github.com/viruscamp/luadec/files/9010649/luadec-aarm64.zip)
Hi :) When I was decompiling the Lua script on openwrt, I found a `segmentation fault` error. I try to debug luadec to find the location of bug. Size of...
1) Case without the issue ```lua local function foo() local a = 123 local b = a or 456 -- here there is "or a value" return b end print(foo())...
test.lua: local arry={1,2,3} function check(idx) return arry[idx] or arry[#arry] end cmd: luac test.lua luadec luac.out>res.lua res.lua: -- Decompiled using luadec 2.2 rev: $WCREV$ for Lua 5.3 from https://github.com/viruscamp/luadec -- Command...
The Nintendo 64 emulator on the Nintendo Switch uses lua files compiled in 5.1 These files have a different structure. No decompiler is capable of generating the exact source files....
``` ... cannot find blockend > 5 , pc = 4, f->sizecode = 5 cannot find blockend > 5 , pc = 4, f->sizecode = 5 cannot find blockend >...
Attempt to fix failures decompiling SETLIST instructions without an active table. ``` $ cat test.lua local foo = {0} print() -- to prevent optimizing to nothing $ luac5.1 -s test.lua...
did not -- loadkx extraarg lacks ?