Commit 1be3f9dc by ojw28

Merge pull request #796 from souji1103/dev

Prevent ArrayIndexOutOfBoundsException when proguard is enabled
parents d7697176 e2ed741d
...@@ -138,7 +138,8 @@ public final class ParsableBitArray { ...@@ -138,7 +138,8 @@ public final class ParsableBitArray {
int returnValue = 0; int returnValue = 0;
// While n >= 8, read whole bytes. // While n >= 8, read whole bytes.
while (n >= 8) { int numBytes = (n / 8);
for (int i = 0; i < numBytes; i ++) {
int byteValue; int byteValue;
if (bitOffset != 0) { if (bitOffset != 0) {
byteValue = ((data[byteOffset] & 0xFF) << bitOffset) byteValue = ((data[byteOffset] & 0xFF) << bitOffset)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment