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:
JesusFreke@JesusFreke.com
2009-08-26 03:08:55 +00:00
parent 59cc9d09b7
commit e88cdf2010

View File

@ -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) {