mirror of
https://github.com/revanced/smali.git
synced 2025-05-22 19:08:52 +02:00
Fix bound check for short offset in Precoditions class
This commit is contained in:
parent
198e0816cf
commit
e636af4931
@ -118,7 +118,7 @@ public class Preconditions {
|
||||
}
|
||||
|
||||
public static int checkShortCodeOffset(int offset) {
|
||||
if (offset < -32768 || offset > 32768) {
|
||||
if (offset < -32768 || offset > 32767) {
|
||||
throw new IllegalArgumentException(
|
||||
String.format("Invalid code offset: %d. Must be between -32768 and 32767, inclusive.", offset));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user