[PATCH] Initialize the entire obstack struct [BZ #17919]
Carlos O'Donell
carlos@redhat.com
Tue Feb 3 16:49:00 GMT 2015
On 02/03/2015 11:46 AM, Andreas Schwab wrote:
> 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.
Fully agreed.
Cheers,
Carlos.
More information about the Libc-alpha
mailing list