Skip to content

Instantly share code, notes, and snippets.

@diogomonica
Created November 17, 2015 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogomonica/9d069ddf608b8af21cdb to your computer and use it in GitHub Desktop.
Save diogomonica/9d069ddf608b8af21cdb to your computer and use it in GitHub Desktop.
memory bomb
int main()
{
while(1)
{
void *m = malloc(1024*1024);
memset(m,0,1024*1024);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment