mirror of
https://github.com/revanced/multidexlib2.git
synced 2025-05-06 09:24:31 +02:00
Fix bug in RawDexIO.readRawDexFile(byte[] buf, int offset, Opcodes opcodes)
The method misbehaved if offset was non-zero.
This commit is contained in:
parent
21f0129b60
commit
232161206a
@ -62,7 +62,7 @@ public class RawDexIO {
|
||||
int dexVersion = HeaderItem.getVersion(buf, offset);
|
||||
opcodes = OpcodeUtils.getOpcodesFromDexVersion(dexVersion);
|
||||
};
|
||||
return new DexBackedDexFile(opcodes, buf, 0);
|
||||
return new DexBackedDexFile(opcodes, buf, offset);
|
||||
}
|
||||
|
||||
// Write
|
||||
|
Loading…
x
Reference in New Issue
Block a user