mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: incorrect pattern offset
This commit is contained in:
parent
7f18bbf66e
commit
f3b5f67b39
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ internal class SignatureResolver(
|
|||
currentThreshold-- == 0
|
||||
) break
|
||||
if (++patternIndex < size) continue
|
||||
patternIndex-- // fix pattern offset
|
||||
|
||||
val result = PatternScanResult(instructionIndex, instructionIndex + patternIndex)
|
||||
if (method is PatternScanMethod.Fuzzy) {
|
||||
|
|
Loading…
Reference in a new issue