mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-19 09:23:56 +00:00
fix: incorrect pattern offset
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user