Skip to content

Commit fba56c4

Browse files
committed
fix(judger): add missing RLIMIT_AS limit
1 parent cd327c0 commit fba56c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

judger/uoj_judger/run/run_program.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ void run_child() {
268268
set_limit(RLIMIT_CPU, run_program_config.time_limit, run_program_config.real_time_limit);
269269
set_limit(RLIMIT_FSIZE, run_program_config.output_limit << 20);
270270
set_limit(RLIMIT_STACK, run_program_config.stack_limit << 20);
271+
set_limit(RLIMIT_AS, run_program_config.memory_limit << 20);
271272

272273
if (run_program_config.input_file_name != "stdin") {
273274
if (freopen(run_program_config.input_file_name.c_str(), "r", stdin) == NULL) {

0 commit comments

Comments
 (0)