Skip to content

Instantly share code, notes, and snippets.

@Rulexec
Created January 30, 2018 19:24
Show Gist options
  • Save Rulexec/5d45a10372dbf5441c3b970df2433b77 to your computer and use it in GitHub Desktop.
Save Rulexec/5d45a10372dbf5441c3b970df2433b77 to your computer and use it in GitHub Desktop.
#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