openube / dex2jar

Tools to work with android .dex and java .class files
0 stars 0 forks source link

error handling misssing cause crash in DexDebugInfoReader.java #193

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
DexDebugInfoReader.java:
////////////////////////////////////////////////
.....
  case DBG_END_LOCAL: {
                int regNum = (int) in.readULeb128();
                LocalVariable v = variableList[regNum];
                codeReader.order(pcOffset);
                v.end = pcOffset;
                // System.out.println(v.start + " - " + pcOffset);
                dcv.visitLocalVariable(v.name, v.type, v.signature, codeReader.labels.get(v.start),
                        codeReader.labels.get(pcOffset), v.reg);

            }
.....
////////////////////////////////////////////////
v could be NULL, so accessing "end" field of v would cause crash. There is 
"NULL handle " in v0.0.7 which no crash happens to my dex file.

Original issue reported on code.google.com by netshel...@gmail.com on 22 Sep 2013 at 8:58