Ports issueshttps://git.hardenedbsd.org/hardenedbsd/ports/-/issues2022-03-18T18:38:01Zhttps://git.hardenedbsd.org/hardenedbsd/ports/-/issues/14[bsd.hardening.mk] Use '-ftrivial-auto-var-init=zero' with GCC.2022-03-18T18:38:01ZLoic[bsd.hardening.mk] Use '-ftrivial-auto-var-init=zero' with GCC.Stack Auto-Zero-Initialzation happen soon in GCC, See:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=a25e0b5e6ac8a77a71c229e0a7b744603365b0e9
We will be able to build ports that use 'USE_GCC' with the "-ftrivial-auto-var-init=zero"...Stack Auto-Zero-Initialzation happen soon in GCC, See:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=a25e0b5e6ac8a77a71c229e0a7b744603365b0e9
We will be able to build ports that use 'USE_GCC' with the "-ftrivial-auto-var-init=zero" argument (See: [bsd.hardening.mk#L361](https://git.hardenedbsd.org/hardenedbsd/ports/-/blame/hardenedbsd/main/Mk/bsd.hardening.mk#L361))Shawn WebbShawn Webbhttps://git.hardenedbsd.org/hardenedbsd/ports/-/issues/19[bsd.hardening.mk] Use '-Wbidi-chars' with GCC12.2022-02-15T17:52:50ZLoic[bsd.hardening.mk] Use '-Wbidi-chars' with GCC12.GCC 12 add a warning flag to Help Fend Off Trojan Source Attacks.
See: https://developers.redhat.com/articles/2022/01/12/prevent-trojan-source-attacks-gcc-12GCC 12 add a warning flag to Help Fend Off Trojan Source Attacks.
See: https://developers.redhat.com/articles/2022/01/12/prevent-trojan-source-attacks-gcc-12