This commit is contained in:
virusdefender 2016-01-12 19:10:22 +08:00
parent 72e7b6b5e8
commit 156bb2044e
2 changed files with 27 additions and 0 deletions

7
.gitignore vendored
View File

@ -1 +1,8 @@
.idea/
build/
a.out
limit
in
out
runner
CMakeLists.txt

20
test.c Normal file
View File

@ -0,0 +1,20 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
int main()
{
int *a = NULL;
// 150M
int v = 150000000;
a = (int *)malloc(v);
if(a == NULL){
printf("error\n");
}
else {
memset(a, 0, v);
printf("success\n");
}
return 15;
}