This commit is contained in:
virusdefender 2016-03-17 21:58:07 +08:00
parent 238eb4ab17
commit 656c04f35a
9 changed files with 1 additions and 35 deletions

View File

@ -112,7 +112,7 @@ static PyObject *judger_run(PyObject *self, PyObject *args, PyObject *kwargs) {
}
if(config.use_nobody && getuid() != 0) {
PyErr_SetString(PyExc_ValueError, "root use is required when using nobody");
PyErr_SetString(PyExc_ValueError, "root user is required when using nobody");
return NULL;
}

View File

@ -1,15 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
// 150m
int big_size = 150 * 1024 * 1024;
int *b = NULL;
b = (int *)malloc(big_size);
memset(b, 0, big_size);
return 0;
}

View File

@ -1 +0,0 @@
{"language": "c", "max_cpu_time": 300, "max_memory": 100000000}

View File

View File

@ -1 +0,0 @@
{"flag": 3, "signal": 0}

View File

@ -1,15 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
// 150m
int big_size = 150 * 1024 * 1024;
int *b = NULL;
b = (int *)malloc(big_size);
memset(b, 0, big_size);
return 0;
}

View File

@ -1 +0,0 @@
{"language": "c", "max_cpu_time": 300, "max_memory": 100000000}

View File

View File

@ -1 +0,0 @@
{"flag": 3, "signal": 0}