Skip to content
Permalink
Browse files

fix(res): skip string if parsing failed (#712)

  • Loading branch information
skylot committed Jul 14, 2019
1 parent 0c2784b commit 8e8a2faa1073e6d7fceabe99d223a9553a1d7506
Showing with 3 additions and 1 deletion.
  1. +3 −1 jadx-core/src/main/java/jadx/core/xmlgen/CommonBinaryParser.java
@@ -11,7 +11,6 @@
return parseStringPoolNoType();
}

@SuppressWarnings("unused")
protected String[] parseStringPoolNoType() throws IOException {
long start = is.getPos() - 2;
is.checkInt16(0x001c, "String pool header size not 0x001c");
@@ -56,6 +55,9 @@
}

private static String extractString8(byte[] strArray, int offset) {
if (offset >= strArray.length) {
return "STRING_DECODE_ERROR";
}
int start = offset + skipStrLen8(strArray, offset);
int len = strArray[start++];
if (len == 0) {

0 comments on commit 8e8a2fa

Please sign in to comment.
You can’t perform that action at this time.