Commit 9d257cd1 authored by Ahmed Ashour's avatar Ahmed Ashour Committed by skylot

fix(res): ignore resource entry with -1 key (#556) (PR #557)

parent 1e554117
......@@ -214,6 +214,9 @@ public class ResTableParser extends CommonBinaryParser {
int size = is.readInt16();
int flags = is.readInt16();
int key = is.readInt32();
if (key == -1) {
return;
}
int resRef = pkg.getId() << 24 | typeId << 16 | entryId;
String typeName = pkg.getTypeStrings()[typeId - 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment