4 ms·
I distinctly remember a GCC patch that added `system("rm -Rf /")` on some undefined behavior conditions. But I can't find it right now.
by cyberax 9mo ago
I distinctly remember a GCC patch that added `system("rm -Rf /")` on some undefined behavior conditions. But I can't find it right now.
- quuxplusone 9mo agoAre you thinking of how early releases of GCC would (as an easter egg) run emacs, hack, or rogue upon encountering an unknown #pragma directive? https://blog.djmnet.org/2008/08/05/a-pragmatic-decision/ https://blog.djmnet.org/2008/08/05/a-pragmatic-decision/
- webdevver 9mo agoI've never heard of it doing rm -rf, but apparnetly it did try to launch nethack under certain unknown preprocessor conditions: https://feross.org/gcc-ownage/?1?1 https://feross.org/gcc-ownage/?1?1 https://gcc.gnu.org/pipermail/gcc/2002-January/074450.html https://gcc.gnu.org/pipermail/gcc/2002-January/074450.html
- kryptiskt 9mo agoBack in the day, a GHC release had a bug that deleted source files with errors in them: https://gitlab.haskell.org/ghc/ghc/-/issues/163 https://gitlab.haskell.org/ghc/ghc/-/issues/163. Which is pretty harsh as diagnostics go.