anestisb / vdexExtractor

Tool to decompile & extract Android Dex bytecode from Vdex files
Apache License 2.0
1k stars 215 forks source link

Fix inconsistency in array declaration #75

Open Rulliam opened 2 years ago

Rulliam commented 2 years ago

Fix this error (fedora 36)

dex_instruction.c:655:43: error: argument 2 of type ‘u4[kMaxVarArgRegs]’ {aka ‘unsigned int[kMaxVarArgRegs]’} declared as a variable length array [-Werror=vla-parameter]
  655 | void dexInstr_getVarArgs(u2 *code_ptr, u4 arg[kMaxVarArgRegs]) {
      |                                        ~~~^~~~~~~~~~~~~~~~~~~
In file included from dex_instruction.c:23:
dex_instruction.h:278:32: note: previously declared as an ordinary array ‘u4[]’ {aka ‘unsigned int[]’}
  278 | void dexInstr_getVarArgs(u2 *, u4 []);
      |                                ^~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:56: dex_instruction.o] Error 1

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wvla-parameter

Thank you

Luciogi commented 2 years ago

thank you

dingshaohua-com commented 1 month ago
Administrator@computer /cygdrive/d/code/vdexExtractor/bin
$ ./vdexExtractor -i ./boot-ext.vdex -o /
[INFO] Processing 1 file(s) from ./boot-ext.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 0 Dex files have been extracted in total
[INFO] Extracted Dex files are available in '/'

why 0 file output

RJMultiDev commented 1 month ago

@Rulliam check your commit,why it can't output anything when i using it?