AlexeySoshin / smali2java

Recreate Java code from Smali
486 stars 84 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #5

Closed skyEnlong closed 4 years ago

skyEnlong commented 5 years ago

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x10ae11f]

goroutine 1 [running]: main.parseSmaliFiles.func1(0x7ffeefbff9ac, 0x13, 0x0, 0x0, 0x10fb740, 0xc000070210, 0x10, 0x10cc360) /Users/enlong/go/src/github.com/alexeysoshin/smali2java/smali2java.go:31 +0x2f path/filepath.Walk(0x7ffeefbff9ac, 0x13, 0xc00004c2d0, 0x1, 0x0) /usr/local/Cellar/go/1.11.4/libexec/src/path/filepath/path.go:402 +0x6a main.parseSmaliFiles(0x7ffeefbff9ac, 0x13) /Users/enlong/go/src/github.com/alexeysoshin/smali2java/smali2java.go:29 +0x89 main.main() /Users/enlong/go/src/github.com/alexeysoshin/smali2java/smali2java.go:23 +0x8d

AlexeySoshin commented 5 years ago

Hi, Please attach the file you get this error from.

globsecure commented 5 years ago
➜  decompile smali2java
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x10b086f]

goroutine 1 [running]:
main.parseSmaliFiles.func1(0x10eab3b, 0x13, 0x0, 0x0, 0x1105ce0, 0xc000092060, 0x10, 0x10cf7a0)
    /usr/local/Cellar/go/1.12.5/libexec/src/github.com/AlexeySoshin/smali2java/smali2java.go:31 +0x2f
path/filepath.Walk(0x10eab3b, 0x13, 0xc0000900a0, 0x10ebc00, 0x0)
    /usr/local/Cellar/go/1.12.5/libexec/src/path/filepath/path.go:402 +0x6a
main.parseSmaliFiles(0x10eab3b, 0x13)
    /usr/local/Cellar/go/1.12.5/libexec/src/github.com/AlexeySoshin/smali2java/smali2java.go:29 +0x89
main.main()
    /usr/local/Cellar/go/1.12.5/libexec/src/github.com/AlexeySoshin/smali2java/smali2java.go:23 +0xe9
➜  decompile