Skip to content

Commit 994d748

Browse files
Fix the wrong Assert
1 parent 9f4fa2e commit 994d748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/FinderOuter/Services/CorePassService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public unsafe void MainLoop(int firstItem, ParallelLoopState loopState)
9999
{
100100
totalPassLen += item.WriteValue(passBaPt + totalPassLen, passBa.Length);
101101
}
102-
Debug.Assert(totalPassLen <= searchSpace.MaxPasswordSize - searchSpace.Salt.Length);
102+
Debug.Assert(totalPassLen <= searchSpace.MaxPasswordSize);
103103
Buffer.MemoryCopy(saltPt, passBaPt + totalPassLen, passBa.Length, searchSpace.Salt.Length);
104104
totalPassLen += searchSpace.Salt.Length;
105105

0 commit comments

Comments
 (0)