Re: Uninitialized variables and F37

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, May 9, 2022 5:10:07 AM EDT Daniel P. Berrangé wrote:
> On Fri, Jan 21, 2022 at 01:04:51PM -0500, Steve Grubb wrote:
> > This is a continuation of the discussion from F36 Change: GNU Toolchain
> > Update.
> 
> snip.
> 
> > He talks about -ftrivial-auto-var-init=zero being used for production
> > builds and -ftrivial-auto-var-init=<pattern>  being used for debug
> > builds. The use is not just the kernel. Consider a server that returns
> > data across the network to a client. It could possibly leak crypto keys
> > or passwords if the returned data structure has uninitialized memory.
> 
> snip
> 
> > I think this would be an important step forward to turn this on across
> > all compilations. We could wipe out an entire class of bugs in one fell
> > swoop.
> 
> Fast-forward a few months and I see GCC 12.1 is released now with
> -ftrivial-auto-var-init option support [2].
> 
> Are you going to take this idea forward and make a formal change proposal
> for Fedora to set -ftrivial-auto-var-init=zero by default in its default
> RPM build flags ?

I've connected with the gcc folks and we will file a proposal in the near 
future.

-Steve

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux