mirror of
https://github.com/revanced/smali.git
synced 2025-06-12 04:17:36 +02:00
If the ArrayData pseudo instruction has an odd size, write out a final padding byte
git-svn-id: https://smali.googlecode.com/svn/trunk@422 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
@ -62,6 +62,10 @@ public class ArrayDataPseudoInstruction extends Instruction {
|
||||
out.writeShort(elementWidth);
|
||||
out.writeInt(elementCount);
|
||||
out.write(encodedValues);
|
||||
if ((encodedValues.length % 2) != 0) {
|
||||
//must write out an even number of bytes
|
||||
out.writeByte(0);
|
||||
}
|
||||
}
|
||||
|
||||
public ArrayDataPseudoInstruction(byte[] buffer, int bufferIndex) {
|
||||
|
Reference in New Issue
Block a user