We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdca237 commit 5c254dbCopy full SHA for 5c254db
1 file changed
src/core/judgingthread.cpp
@@ -924,7 +924,7 @@ void JudgingThread::runProgram() {
924
if (memoryLimit != -1) {
925
GetProcessMemoryInfo(pi.hProcess, (PROCESS_MEMORY_COUNTERS *)&memoryInfo, sizeof(memoryInfo));
926
927
- if (qMax(memoryInfo.PrivateUsage, memoryInfo.PeakWorkingSetSize) > memoryLimit * 1024 * 1024) {
+ if (qMax(memoryInfo.PrivateUsage, memoryInfo.PeakWorkingSetSize) > 1ll * memoryLimit * 1024 * 1024) {
928
TerminateProcess(pi.hProcess, 0);
929
930
score = 0;
0 commit comments