mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-11 01:24:25 +02:00
fix: incorrect pattern offset
This commit is contained in:
parent
7f18bbf66e
commit
f3b5f67b39
@ -99,6 +99,7 @@ internal class SignatureResolver(
|
|||||||
currentThreshold-- == 0
|
currentThreshold-- == 0
|
||||||
) break
|
) break
|
||||||
if (++patternIndex < size) continue
|
if (++patternIndex < size) continue
|
||||||
|
patternIndex-- // fix pattern offset
|
||||||
|
|
||||||
val result = PatternScanResult(instructionIndex, instructionIndex + patternIndex)
|
val result = PatternScanResult(instructionIndex, instructionIndex + patternIndex)
|
||||||
if (method is PatternScanMethod.Fuzzy) {
|
if (method is PatternScanMethod.Fuzzy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user