AlexeySoshin / smali2java

Recreate Java code from Smali
486 stars 84 forks source link

panic: runtime error: slice bounds out of range #4

Closed PuffingIn2D closed 5 years ago

PuffingIn2D commented 5 years ago
C:\Users\Jon\Desktop\RE_TOOLS\java\smali2java>smali2java.exe -path_to_smali=C:\Users\Jon\Desktop\paypal_files\com.paypal.android.p2pmobile
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/alexeysoshin/smali2java/parser.(*MethodParser).Parse(0xc00015f6d0, 0xc00015f780, 0xc0004366e0, 0x5, 0x5, 0xf0b, 0x0)
        C:/Users/Jon/go/src/github.com/alexeysoshin/smali2java/parser/method.go:78 +0xe6a
github.com/alexeysoshin/smali2java/parser.(*JavaFile).ParseLine(0xc00015f780, 0xc00003c9c0, 0x58, 0xf0b, 0xc00003c9c0)
        C:/Users/Jon/go/src/github.com/alexeysoshin/smali2java/parser/java_file.go:102 +0xafb
main.convertSmali(0xc000285200, 0x75, 0xc0000520b0)
        C:/Users/Jon/go/src/github.com/alexeysoshin/smali2java/smali2java.go:64 +0x1f2
main.parseSmaliFiles.func1(0xc000285200, 0x75, 0x509fa0, 0xc000256c40, 0x0, 0x0, 0xc00015f948, 0x485eef)
        C:/Users/Jon/go/src/github.com/alexeysoshin/smali2java/smali2java.go:36 +0xb8
path/filepath.walk(0xc000285200, 0x75, 0x509fa0, 0xc000256c40, 0xc00003e2d0, 0x0, 0x0)
        C:/Go/src/path/filepath/path.go:358 +0x410
path/filepath.walk(0xc0003600c0, 0x5f, 0x509fa0, 0xc000195ab0, 0xc00003e2d0, 0x0, 0x0)
        C:/Go/src/path/filepath/path.go:382 +0x2f2
path/filepath.walk(0xc0000acf00, 0x57, 0x509fa0, 0xc0000995e0, 0xc00003e2d0, 0x0, 0x0)
        C:/Go/src/path/filepath/path.go:382 +0x2f2
path/filepath.walk(0xc0002f09c0, 0x54, 0x509fa0, 0xc0003435e0, 0xc00003e2d0, 0x0, 0x0)
        C:/Go/src/path/filepath/path.go:382 +0x2f2
path/filepath.walk(0xc0002f8a50, 0x4c, 0x509fa0, 0xc0003009a0, 0xc00003e2d0, 0x0, 0x0)
        C:/Go/src/path/filepath/path.go:382 +0x2f2
path/filepath.walk(0xc0002f82d0, 0x44, 0x509fa0, 0xc0001c7a40, 0xc00003e2d0, 0x0, 0x0)
        C:/Go/src/path/filepath/path.go:382 +0x2f2
path/filepath.walk(0xc00008200f, 0x3e, 0x509fa0, 0xc00008a000, 0xc00003e2d0, 0x0, 0x10)
        C:/Go/src/path/filepath/path.go:382 +0x2f2
path/filepath.Walk(0xc00008200f, 0x3e, 0xc00003e2d0, 0x1, 0x0)
        C:/Go/src/path/filepath/path.go:404 +0x10c
main.parseSmaliFiles(0xc00008200f, 0x3e)
        C:/Users/Jon/go/src/github.com/alexeysoshin/smali2java/smali2java.go:29 +0x90
main.main()
        C:/Users/Jon/go/src/github.com/alexeysoshin/smali2java/smali2java.go:23 +0x94
AlexeySoshin commented 5 years ago

Don't use it to decompile commercial apps.