omkjo0408 / androguard

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

Incorrect decompilation: missing method call #104

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When decompiling the following, the method call is missing:

    27      (00000060) invoke-static        v10, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
    28      (00000066) move-result-wide     v1
    29      (00000068) aput-wide            v1, v7, v0
    30      (0000006c) const/4              v10, 2
    31      (0000006e) aget-wide            v0, v7, v10
    32      (00000072) const-wide/16        v2, 4095 # [4095.0]
    33      (00000076) and-long             v8, v0, v2
    34      (0000007a) const/4              v10, 2
    35      (0000007c) const/4              v0, 2
    36      (0000007e) aget-wide            v0, v7, v0
    37      (00000082) const-wide           v2, 4294963200 # [2.1219937672723869e-314]
    38      (0000008c) and-long/2addr       v0, v2
    39      (0000008e) aput-wide            v0, v7, v10
    40      (00000092) const/4              v10, 0
    41      (00000094) aget-wide            v0, v7, v10
    42      (00000098) const/4              v10, 1
    43      (0000009a) aget-wide            v2, v7, v10
    44      (0000009e) const/4              v10, 2
    45      (000000a0) aget-wide            v4, v7, v10
    46      (000000a4) invoke-static/range  v0 ... v5, <redacted>/AuthorizationCode;->calculateChecksum(J J J)J
    47      (000000aa) move-result-wide     v0
    48      (000000ac) cmp-long             v10, v8, v0
    49      (000000b0) if-nez               v10, +91

Decompiles to:

            v1 = Long.parseLong(p10.substring(20, 30));
            v7[2] = v1;
            v8 = (v7[2] & 4095.0);
            v7[2] = (v7[2] & 2.12199376727e-314);
            v4 = v7[2];
            } else {

Original issue reported on code.google.com by drspring...@gmail.com on 18 Jan 2013 at 3:46

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 18 Jan 2013 at 3:50