{"record":{"id":"8a437ae3346e8718","repo":"pxb1988/dex2jar","slug":"can-t-pase-string","errorCode":null,"errorMessage":"can't pase string","messagePattern":"can't pase string","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"d2j-smali/src/main/java/com/googlecode/d2j/smali/Utils.java","lineNumber":339,"sourceCode":"                    case '\\'':\n                    case '\\\\':\n                        i += 2;\n                        break;\n                    case 'u':\n                        i += 6;\n                        break;\n                    default:\n                        int x = 0;\n                        while (x < 3) {\n                            char e = str.charAt(i + 1 + x);\n                            if (e >= '0' && e <= '7') {\n                                x++;\n                            } else {\n                                break;\n                            }\n                        }\n                        if (x == 0) {\n                            throw new RuntimeException(\"can't pase string\");\n                        }\n                        i += 1 + x;\n                }\n\n            } else {\n                if (c == dEnd) {\n                    return i;\n                }\n                i++;\n            }\n        }\n        return end;\n    }\n\n    public static String unEscape0(String str, int start, int end) {\n\n        StringBuilder sb = new StringBuilder();\n        for (int i = start; i < end; ) {","sourceCodeStart":321,"sourceCodeEnd":357,"githubUrl":"https://github.com/pxb1988/dex2jar/blob/b5bda4fb4935ae8b3869b422454ae3b3896c7bc1/d2j-smali/src/main/java/com/googlecode/d2j/smali/Utils.java#L321-L357","documentation":"A generic guard in findString: while unescaping a smali/dex string literal the escape scanner (handling \\\\, \\', \\uXXXX and up to 3 octal digits) walked past the end of the input or hit a character sequence that does not form a valid escape, so the literal cannot be parsed. The faulting input is the string literal being decoded.","triggerScenarios":"Thrown at d2j-smali/src/main/java/com/googlecode/d2j/smali/Utils.java:339 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the string literal in the smali/dex input for a malformed escape (e.g. a trailing lone backslash or an incomplete \\u sequence)","If the file was edited by hand, quote or fix the escape and regenerate","If the literal comes from a third-party dex, verify the file is not truncated or corrupted — re-obtain the original APK/DEX"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b5bda4fb4935ae8b3869b422454ae3b3896c7bc1","analyzedAt":"2026-09-08T00:44:01.258Z","contentChangedAt":"2026-09-08T00:44:01.258Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}