Skip to content

Commit

Permalink
fix: incorrect pattern offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas authored and oSumAtrIX committed Jun 5, 2022
1 parent 7f18bbf commit f3b5f67
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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) {
Expand Down

0 comments on commit f3b5f67

Please sign in to comment.