Attention people who think UB is fine
cppdashboard.dev/r/2026/10/attention-people-who-think-ub-is-fine--> Categories About Support on Patreon --> --> Livecount : connecting… This is my personal blog. The views expressed on these pages are mine alone and not those of my employer. This is not AI. All hallucinations are my own human ones.…
From the article
--> Categories About Support on Patreon --> --> Livecount : connecting… This is my personal blog. The views expressed on these pages are mine alone and not those of my employer. This is not AI. All hallucinations are my own human ones. Attention people who think UB is fine --> 2026-10-22 , Categories: programming
After my post on undefined behavior in C some people insisted that it’s demonstrably fine, we know what the code will do, and at worst we’ll get a segfault.
(sorry. This is C++, but the equivalent C code produces exactly the same assembly output)
Share this resource