From d92f3f3ed6336d739ec0b25e1d08bb5605d073db Mon Sep 17 00:00:00 2001 From: undefined Date: Fri, 2 Dec 2022 22:14:26 +0800 Subject: [PATCH] judge: add copyOutMax config --- packages/hydrojudge/src/sandbox.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/hydrojudge/src/sandbox.ts b/packages/hydrojudge/src/sandbox.ts index 386fb1a15..dae24667f 100644 --- a/packages/hydrojudge/src/sandbox.ts +++ b/packages/hydrojudge/src/sandbox.ts @@ -98,6 +98,7 @@ function proc(params: Parameter): Cmd { strictMemoryLimit: getConfig('strict_memory'), // stackLimit: memory * 1024 * 1024, procLimit: params.processLimit || getConfig('processLimit'), + copyOutMax: Math.floor(1024 * 1024 * size * 3), copyIn, copyOut, copyOutCached,