Skip to content

Conversation

@thomasnyman
Copy link
Contributor

@thomasnyman thomasnyman commented Jun 12, 2025

This flag reduces the risk that an incomplete initialization reveals sensitive information and can be used to achieve consistent behaviors for union and struct initializers across GCC versions.

Fixes #857

Copy link
Contributor

@gkunz gkunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@thomasnyman thomasnyman merged commit 83ec651 into main Jul 10, 2025
6 checks passed
@thomasnyman thomasnyman deleted the add-zero-init-padding-bits branch July 10, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider -fzero-init-padding-bits=all for C and C++ Compiler Hardening Guide

4 participants