From f3b5f67b395167c1b9411b2374f3ef584b57b6cf Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Sat, 16 Apr 2022 21:38:06 +0200 Subject: [PATCH] fix: incorrect pattern offset --- .../app/revanced/patcher/signature/resolver/SignatureResolver.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt b/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt index 6019c4b..6a6bf88 100644 --- a/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt +++ b/src/main/kotlin/app/revanced/patcher/signature/resolver/SignatureResolver.kt @@ -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) {