Created
January 30, 2018 19:24
-
-
Save Rulexec/5d45a10372dbf5441c3b970df2433b77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) { | |
long size = 36L * 1024 * 1024 * 1024 - 1; | |
void *x = malloc(size); | |
printf("Malloc: %lld\n", (long long) x); | |
sleep(60); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment