dexcalibur icon indicating copy to clipboard operation
dexcalibur copied to clipboard

TypeError: this.__tmp_block.setDataWidth is not a function

Open D-Sinus opened this issue 3 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

When I trying to analyze the application in the device using dexcalibur, an error occurs while parsing the smali code.

To reproduce / to understand Please provide the command used to launch Dexcalibur and steps (if applicable).

Execute following command: node --max-old-space-size=16384 ./dexcalibur.js Select an application -> Press scan -> The error occurs

Expected behavior A clear and concise description of what you expected to happen.

The application is processed and normal dexcalibur UI screen appears.

Screenshots If applicable, add screenshots or copy Dexcalibur output. image

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Node JS version: [12.22.1]
  • Dexcalibur version (see 'package.json' or output) : [0.7.9]

D-Sinus avatar Aug 12 '21 05:08 D-Sinus

Well, turns out that it is solved when I changes the line 435 in SmaliParser.js...

case LEX.STRUCT.ARRAY:
                //this.__tmp_block.setDataWidth(parseInt(sml[1],10));
                this.__tmp_block.setDataWidth = parseInt(sml[1],10);

But I don't know whether the above change is correct patch or not. Would you mind reviewing this issue? @FrenchYeti

D-Sinus avatar Aug 12 '21 05:08 D-Sinus