Increase FORTIFY_SOURCE from 2 to 3
Categories
(Firefox Build System :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: juippis, Unassigned)
Details
Steps to reproduce:
Modern compilers in their current releases support hardened FORTIFY_SOURCE=3 while Firefox's build system forces 2. Apparently just updating -D_FORTIFY_SOURCE=2
to -D_FORTIFY_SOURCE=3
works, but some people responsible of security side of things probably want to confirm the differences and caveats.
Actual results:
The FORTIFY_SOURCE in Firefox is outdated.
Expected results:
It should be updated to line with modern compilers capabilities.
Reporter | ||
Comment 1•2 years ago
|
||
Downstream bug with more information:
https://bugs.gentoo.org/910071
Updated•2 years ago
|
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Comment 3•1 year ago
|
||
Looks like Arch is building Firefox successfully with FORITFY_SOURCE=3.
Not sure if that tracks, due to bug 1418398 and https://searchfox.org/mozilla-central/rev/eadfec923e2b9c927ade8d0dd4f08a82da50a8a9/build/moz.configure/toolchain.configure#2383-2389.
But if we can confirm this working, it might be a cheap win.
Reporter | ||
Comment 4•1 year ago
|
||
In Gentoo we too already do a sed to enable FORTIFY_SOURCE=3
on build/moz.configure/toolchain.configure when +hardened
use flag is specified.
So far no reports regarding this, so it's looking good.
Description
•