16
sam9669
8y

*Awesome compile-bomb in 29 bytes*

If you want to hang up your machine, just compile this code

main[-1u]={1};

With next command line

gcc -mcmodel=medium cbomb.c -o cbomb

It will result in ~16GB executable file (if you have that memory and computer power)

Comments
  • 0
    neat

    will try on spare laptop
  • 0
    Works as intended. What i get:
    main is set to int and the assembler code is indexing some great index.
  • 0
    You are just defining main as an array of ints of size 0xFFFFFFFF
  • 0
    -1ULL would be even more effective
Add Comment