25 May
2022
25 May
'22
20:18
Hi: Bugs due to the use of uninitialized memory are rampant, not only in the kernel where it is extremely dangerous but it is even more widespread in userspace code. I suggest to: Use -ftrivial-auto-var-init=pattern during LEAP development stage, and -ftrivial-auto-var-init=zero in release builds and tumbleweed or some different flag combination depending on which project we are.. staging vs published trees or somethin.. If there is any heinous performance or code size regression on any component this could be disabled on a per-package basis or use__attribute__((uninitialized)) in the offending code. Cheers.