fix: elemSize=0 fill_array_data_payload insn obfuscation (PR #1082)
Co-authored-by: hexun <hexun@fenbi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user