This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]