Please add -ftrivial-auto-var-init=zero to default build flags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned | ||
Kinetic |
Confirmed
|
Wishlist
|
Unassigned | ||
gcc-12 (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned | ||
Kinetic |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Please add "-ftrivial-
It goes well with the other important security flaw mitigation flags already enabled in Ubuntu for GCC:
https:/
While many variables are initialized (due to -Wuninitialized), there is a blind spot for variables passed by reference, padding, and cases where -Wuninitialized just fails to track it. Universally wiping the variables eliminates nearly the entire class of uninitialized stack variable use (https:/
Changed in gcc-12 (Ubuntu): | |
importance: | Undecided → Wishlist |
tags: | added: rls-kk-incoming |
Changed in dpkg (Ubuntu Kinetic): | |
importance: | Undecided → Wishlist |
tags: | added: fr-2368 |
tags: | removed: rls-kk-incoming |
tags: | added: sec-994 |
Does Wuninitialized continue working with that flag?