未验证 提交 a3ea5145 编写于 作者: A alienhe 提交者: GitHub

fix: elemSize=0 fill_array_data_payload insn obfuscation (PR #1082)

Co-authored-by: Nhexun <hexun@fenbi.com>
上级 3dfaec50
......@@ -39,6 +39,7 @@ public final class FillArrayData extends InsnNode {
private static ArgType getElementType(int elementWidthUnit) {
switch (elementWidthUnit) {
case 1:
case 0:
return ONE_BYTE_TYPE;
case 2:
return TWO_BYTES_TYPE;
......
......@@ -336,6 +336,10 @@ public abstract class DexInsnFormat {
data = array;
break;
}
case 0: {
data = new byte[0];
break;
}
default:
throw new DexException("Unexpected element size in FILL_ARRAY_DATA_PAYLOAD: " + elemSize);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册