fix: incorrect pattern offset

This commit is contained in:
Lucaskyy 2022-04-16 21:38:06 +02:00 committed by oSumAtrIX
parent 7f18bbf66e
commit f3b5f67b39
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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) {