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: sparc 32-bit dirent broken


On 10/11/2013 07:33 AM, David Miller wrote:
From: Roland McGrath <roland@hack.frob.com>
Date: Thu, 10 Oct 2013 15:48:37 -0700 (PDT)

In the malloc code (which has the interface mandate of knowing "largest C
base type alignment"), we use __alignof (long double), encoding the
assumption that long double is the most-aligned C type.  It would be
consistent and adequate to use __alignof (long double) in dirstream.h too
(with a clear comment about why it matters).

Ok, with that in mind I've committed the patch below

Looks good to me.

I'm glad that in the end, the bug wasn't in the record parser. :-)

--
Florian Weimer / Red Hat Product Security Team


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