We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1594a69 commit c10b652Copy full SHA for c10b652
src/detection/swap/swap_windows.c
@@ -21,8 +21,8 @@ const char* ffDetectSwap(FFlist* result)
21
ffStrbufInitNWS(&swap->name, current->FileName.Length / sizeof(wchar_t), current->FileName.Buffer);
22
if (ffStrbufStartsWithS(&swap->name, "\\??\\"))
23
ffStrbufSubstrAfter(&swap->name, strlen("\\??\\") - 1);
24
- swap->bytesUsed = current->TotalUsed * pageSize;
25
- swap->bytesTotal = current->CurrentSize * pageSize;
+ swap->bytesUsed = (uint64_t) current->TotalUsed * pageSize;
+ swap->bytesTotal = (uint64_t) current->CurrentSize * pageSize;
26
if (current->NextEntryOffset == 0)
27
break;
28
}
0 commit comments