Open intheway opened 9 years ago
bug of local guessing
Thanks. Did you mean that you have solved it ? I get the result nicer in lua 5.1.
cannot find blockend > 8 , pc = 7, f->sizecode = 9
cannot find blockend > 9 , pc = 8, f->sizecode = 9
cannot find blockend > 2 , pc = 1, f->sizecode = 3
cannot find blockend > 3 , pc = 2, f->sizecode = 3
-- Decompiled using luadec 2.2 rev: 6a4592c for Lua 5.1 from https://github.com/viruscamp/luadec
-- Command line: test-add.luac
-- params : ...
-- function num : 0
add = function(l_1_0, l_1_1)
-- function num : 0_0
return l_1_0 + l_1_1
end
print(add(3, 4))
but still error in 5.2
cannot find blockend > 9 , pc = 8, f->sizecode = 9
cannot find blockend > 3 , pc = 2, f->sizecode = 3
-- Decompiled using luadec 2.2 rev: 6a4592c for Lua 5.2 from https://github.com/viruscamp/luadec
-- Command line: testbyte-strip.luac
[1] 14637 segmentation fault ./luadec testbyte-strip.luac
Thanks. Did you mean that you have solved it ?
No. Local guessing for stripped code is really hard, and the priority is low.
For my case I created a super simple test file
a = 1
And it simply returns bad value at getUpvalName
.
assume the lua file is testbyte.lua and the code is :
first i use
luac -s -o testbyte.luac testbyte.lua
then i useluadec testbyte.luac
it failed with errorso, am i did something wrong? or how to decompile the ' luac -s' file? @jeffallen Thanks a lot!