News for hackers. Stuff that matters.
Re:How to dismantle a compiler bomb by pjc50 on Friday March 09, 2018 @06:37PM (#16556061)
Compilers rarely have any idea how large your stack space is. Quite often it's determined at runtime in various ways, especially in multithreaded environments.

(There are some surprising exceptions such as PIC hardware stacks where you might be allowed exactly 8 call frames, and your whole program's call stack must be a DAG with no recursion)

Re:How to dismantle a compiler bomb by kragen on Saturday March 10, 2018 @03:19PM (#16559962)
Okay, but in this particular case, we're talking about an 8GiB array on a 32-bit platform. Its size truncated to 32 bits is 0x00000000. If the compiler doesn't detect that, it's a compiler bug.