dexcalibur
dexcalibur copied to clipboard
TypeError: this.__tmp_block.setDataWidth is not a function
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.
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]
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