pracio / dex2jar

Automatically exported from code.google.com/p/dex2jar
0 stars 0 forks source link

解析预分配好的二维数组时产生大量的临时变量, 可能造成jd-gui崩溃 #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
JAVA原始代码(class反编译正常)
  private final String[][] mimeTable;

  mimeTable = new String[][]{{ "123",         "application/vnd.lotus-1-2-3"},
                             { "3gp",         "video/3gpp"},
                             { "aab",         "application/x-authoware-bin"},
                             { "aam",         "application/x-authoware-map"},
                             { "aas",         "application/x-authoware-seg"}};
生成dex
使用d2j生成class, 反编译成java结果
  private final String[][] mimeTable;

    String[][] arrayOfString; = new String[5][];
    String[] arrayOfString1 = new String[2];
    arrayOfString1[0] = "123";
    arrayOfString1[1] = "application/vnd.lotus-1-2-3";
    arrayOfString;[0] = arrayOfString1;
    String[] arrayOfString2 = new String[2];
    arrayOfString2[0] = "3gp";
    arrayOfString2[1] = "video/3gpp";
    arrayOfString;[1] = arrayOfString2;
    String[] arrayOfString3 = new String[2];
    arrayOfString3[0] = "aab";
    arrayOfString3[1] = "application/x-authoware-bin";
    arrayOfString;[2] = arrayOfString3;
    String[] arrayOfString4 = new String[2];
    arrayOfString4[0] = "aam";
    arrayOfString4[1] = "application/x-authoware-map";
    arrayOfString;[3] = arrayOfString4;
    String[] arrayOfString5 = new String[2];
    arrayOfString5[0] = "aas";
    arrayOfString5[1] = "application/x-authoware-seg";
    arrayOfString;[4] = arrayOfString5;
    this.mimeTable = arrayOfString;;
===============================================
Please use labels and text to provide additional information.

d2j 版本号:ad77c8e6a992

当本地变量数过多(也可能为其它原因, 
但确定和此二维数组有关)时会造成jd-gui崩溃
classes文件夹: 原始.class文件
com.example.cc.ArrayTest: String[410][2], 
一个会造成jd-gui崩溃的二维数组
com.example.cc.ArrayTest2: 上面的对比class, 可能由于规模较小, 
不会引起异常

Original issue reported on code.google.com by yyjdel...@gmail.com on 18 Jul 2012 at 5:32

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
这个是从Issue 
126拆开来的,主要是那个实际上包含了两个问题..
之前忘写了

Original comment by yyjdel...@gmail.com on 18 Jul 2012 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by yyjdel...@gmail.com on 19 Jul 2012 at 12:08

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by yyjdel...@gmail.com on 27 Jul 2012 at 7:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This issue was closed by revision 3d9a1db36a1b.

Original comment by yyjdel...@gmail.com on 27 Jul 2012 at 8:07