Git Product home page Git Product logo

luadec's People

Contributors

viruscamp avatar

Watchers

 avatar

luadec's Issues

crash on *.lu files used by corona sdk

What steps will reproduce the problem?
1. luadec db_m.lu
2. luadec -dis db_m.lu
3.

What is the expected output? What do you see instead?
I expected it can decompile to pesudo code, but luadec just crash.
And disassemble output is different from luadec51 in line2 (VARARG R1, R2 vs 
VARARG R1, 2)

What version of the product are you using? On what operating system?
latest 2.1 from downloads section.

Please provide any additional information below.
I attached some *.lu file extract from corona's resource.car package.
db_m.asm is disassembled by luadec51, db_m_2.asm is produced by luadec 2.1.
I modified unluac for some empty upvars exception, but crashes on db_m.lu too.

Original issue reported on code.google.com by [email protected] on 28 Aug 2012 at 9:10

Attachments:

luadec.exe 无限崩溃


从 https://github.com/viruscamp/luadec/  下载最新的源码后用VS 2013 
编译出luadec.exe

现在Luadec.exe 特别容易崩溃

Luadec.exe 已停止工作每次都是提示 

问题签名:
  问题事件名称:   APPCRASH
  应用程序名:  luadec.exe
  应用程序版本:   0.0.0.0
  应用程序时间戳:    54a033f3
  故障模块名称:   MSVCR120D.dll
  故障模块版本:   12.0.21005.1
  故障模块时间戳:    524f7ce5
  异常代码: c0000005
  异常偏移: 00094380
  OS 版本:    6.3.9600.2.0.0.256.48
  区域设置 ID:  2052
  其他信息 1:   5861
  其他信息 2:   5861822e1919d7c014bbb064c64908b2
  其他信息 3:   bb02
  其他信息 4:   bb02c3b29c3f075104f1d0629e885cfc

Original issue reported on code.google.com by blink0915 on 16 Jan 2015 at 12:28

Attachments:

Problem in DecompileString()

What steps will reproduce the problem?
1. Try to decompile strings containing {0x02 0x35} and {0x19}.  Both decompile 
as "\25".
2.
3.

What is the expected output? What do you see instead?
{0x02 0x35} should decompile as \0025 while {0x19} should decompile as \025

What version of the product are you using? On what operating system?


Please provide any additional information below.
One proposed fix to proto.c at lines 77-85 to always write 3 digits might be

                default:
                        if ((*s < 32 || *s > 127) && !( *s >= 0x40 && *s <= 0xFE ) ){
                                char* pos = &(ret[p]);
                                sprintf(pos, "\\%03d", *s);
                                p += strlen(pos);
                        } else {
                                ret[p++] = *s;
                        }
                        break;


Original issue reported on code.google.com by [email protected] on 15 Aug 2013 at 2:57

ChunkSpy error

What steps will reproduce the problem?
lua ChunkSpy.lua sample.out

What is the expected output? What do you see instead?
ChunkSpy.lua:792: bad argument #5 to 'format' (number expected, got string)

What version of the product are you using? On what operating system?
ChunkSpy delivered with luadec 2.1 UNICODE r72M (macosx 10.8)

Please provide any additional information below.
line 792:    Comment = string.format("%s%d := %s; PC := 
%d",CC(a),CV(a),v,CommentLoc(1));
fix = "... PC := %s"

Original issue reported on code.google.com by [email protected] on 17 Jun 2013 at 9:55

嵌套if的反编译结果逻辑错误 logical error in nested if

What steps will reproduce the problem?
1. luadec test.lua

What is the expected output? What do you see instead?
the test.lua:
if a >= 0 then
  if b >= 0 then
    b = 1
  else
    b = 2
  end
end

decompile result:
if a >= 0 then
  if b >= 0 then
    b = 1
  end
else
  b = 2
end

What version of the product are you using? On what operating system?
luadec-v2.1-b18

Please provide any additional information below.

Original issue reported on code.google.com by jayxon on 19 Sep 2012 at 3:39

Attachments:

The problem with decompiling

What steps will reproduce the problem?
1. luadec WeightStation.luc > WeightStation.lua

What is the expected output? What do you see instead?
luadec.exe: WeightStation.luc:1: unexpected symbol near "'"

What version of the product are you using? On what operating system?
luadec v2.1 r80
Windows 7 Ultimate x64 + SP1

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 22 Sep 2013 at 9:06

Attachments:

nested while and if error

local a,b;

while a and b do
  f()
end

while a do
  if b then
    f()
  end
end

while a do
  while b do
    f()
  end
end

decompiled output was :

local a, b = nil
repeat
until a and b
f()
end
while a and b do
f()
end
while a and b do
f()
end
end

Original issue reported on code.google.com by [email protected] on 7 Jul 2013 at 4:36

elseif issue when condition is function call return

What steps will reproduce the problem?
1. luadec tu1.lua

What is the expected output? What do you see instead?
the tu1.lua
TUelseif = function(p)
  local v = 0
  if p == 0 then
    v = 1
  elseif func() then
    v = 2
  else
    print("error")
  end
end

decompile result:
TUelseif = function(p)
  local v = 0
  if p == 0 then
    v = 1
  else
    if func() then
      v = 2
    end
  else
    print("error")
  end
end

What version of the product are you using? On what operating system?
luadec 2.1 UNICODE r72M (macosx 10.8)


Original issue reported on code.google.com by [email protected] on 17 Jun 2013 at 9:43

Attachments:

if_elseif error in some condition

local b,c,f

--error
if f(b)==3 then
    c = 4
elseif f(b)==4 then
    c = 5
else
    c = 6
end

--ok
if b==3 then
    c = 4
elseif b==4 then
    c = 5
else
    c = 6
end

--output
if f(b) == 3 then
  c = 4
else
  if f(b) == 4 then
    c = 5
  end
else
  c = 6
end

Original issue reported on code.google.com by [email protected] on 7 Jul 2013 at 1:20

Can´t decompile *.lu files from resource.car

What steps will reproduce the problem?
1. luadec cave.lu
2.
3.

What is the expected output? What do you see instead?
Decompiled lua file, but see error message: 
unespected symbol near char(2)

What version of the product are you using? On what operating system?
luadec v2.1 r80

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 24 Jul 2013 at 5:23

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.