mirror of
https://github.com/revanced/smali.git
synced 2025-05-02 23:54:38 +02:00
Make sure we write an even number of bytes for an array data instruction
This commit is contained in:
parent
e240310664
commit
b64be8ba36
@ -507,21 +507,25 @@ public class CodeItemPool {
|
||||
for (Number element: elements) {
|
||||
writer.write(element.byteValue());
|
||||
}
|
||||
return;
|
||||
break;
|
||||
case 2:
|
||||
for (Number element: elements) {
|
||||
writer.writeShort(element.shortValue());
|
||||
}
|
||||
return;
|
||||
break;
|
||||
case 4:
|
||||
for (Number element: elements) {
|
||||
writer.writeInt(element.intValue());
|
||||
}
|
||||
return;
|
||||
break;
|
||||
case 8:
|
||||
for (Number element: elements) {
|
||||
writer.writeLong(element.longValue());
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ((writer.getPosition() & 1) != 0) {
|
||||
writer.write(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user