News for hackers. Stuff that matters.
Re:Initialization in C++ is Seriously Bonkers by gamma-male on Saturday January 05, 2019 @09:40PM (#18836140)
The OS does initialize it, so if you’re writing code for linux in any languages, or even in assembly, you won’t be able to spy on that retrieved memory.

Now C might want to do it too, but bare metal stuff is not necessarily compliant C so that doesn’t matter much.

Re:Initialization in C++ is Seriously Bonkers by monocasa on Saturday January 05, 2019 @10:54PM (#18836473)
(Having been the lead for an RTOS) it matters less what the spec says, and more what the compiler expects. So like, you can ignore kill(3) by just not calling it. Patching the compiler to not depend on zero initialized .bss is way harder, and it's just easier to clear it yourself pre main.