[PATCH] Initialize the entire obstack struct [BZ #17919]

Andreas Schwab schwab@suse.de
Tue Feb 3 16:46:00 GMT 2015


Siddhesh Poyarekar <siddhesh@redhat.com> writes:

> This is also why I started out filing a gcc bug, but then changed my
> mind and fixed it in glibc instead, since I presumed that the compiler
> can assume that the padding is also appropriately initialized.

No, it can't.  Padding must be assumed to be random.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Libc-alpha mailing list