Skip to content

Commit f0e6dbd

Browse files
committed
Fixed parameter too big.
1 parent 6ba85fc commit f0e6dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReClass.NET/MemoryScanner/Comparer/RegexStringMemoryComparer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public IEnumerable<ScanResult> Compare(byte[] data, int size)
3737
var match = Pattern.Match(buffer);
3838
while (match.Success)
3939
{
40-
var byteOffset = Encoding.GetByteCount(bufferArray, lastIndex, match.Index) + lastOffset;
40+
var byteOffset = Encoding.GetByteCount(bufferArray, lastIndex, match.Index - lastIndex) + lastOffset;
4141

4242
lastIndex = match.Index;
4343
lastOffset = byteOffset;

0 commit comments

Comments
 (0)