This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v4] libio: use PTR_MANGLE/PTR_DEMANGLE for FILE vtables
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Kees Cook <keescook at chromium dot org>, libc-alpha at sourceware dot org, Mike Frysinger <vapier at gentoo dot org>, Adam Conrad <adconrad at 0c3 dot net>, Joseph Myers <joseph at codesourcery dot com>, Yunlian Jiang <yunlian at google dot com>
- Date: Tue, 31 May 2016 11:55:49 -0700 (PDT)
- Subject: Re: [PATCH v4] libio: use PTR_MANGLE/PTR_DEMANGLE for FILE vtables
- Authentication-results: sourceware.org; auth=none
- References: <20160525210903 dot GA10689 at www dot outflux dot net> <4904d708-1dd0-b03c-b6fb-beddbed782d4 at redhat dot com>
> On 05/25/2016 11:09 PM, Kees Cook wrote:
> > +#ifndef USE_COMPAT_LIBIO
> > + PTR_MANGLE (_IO_JUMPS_FILE_plus_RAW (stdin));
>
> Does anybody know why we have #ifdef PTR_MANGLE in some many places?
Originally it was only done for some machines. I think we decided quite a
while ago that we should just implement it all around, so the #ifdef'ing
is obsolete.