bomb

  • 20th January 2018

How to dismantle a compiler bomb

main[-1u]={1};

You have heard of "zip bombs" (a tiny ZIP file that decompresses to multiple gigabytes) and "XML bombs" (small XML file abusing the entities to consume lots of memory), and now there is a "compiler bomb" to follow suit.  The idea is quite similar -- the source code is only 14 bytes, but the generated executable will be over 16 GB in size…

Read more