This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: glibc malloc hook deprecation considered harmful
- From: Ulrich Drepper <drepper at gmail dot com>
- To: Emery Berger <emery at cs dot umass dot edu>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 4 Aug 2011 14:55:48 -0400
- Subject: Re: glibc malloc hook deprecation considered harmful
- References: <CA+nL1omH+QrMb6uZ4NQOu2YVjWG7yGiLBAN7maUCb5PSKx3ZQg@mail.gmail.com>
On Tue, Jul 26, 2011 at 10:41, Emery Berger <emery@cs.umass.edu> wrote:
> However, as far as I am aware, they are the only safe / reliable means
> of intercepting malloc for an entire program, at least on Linux
> platforms.
Huh? All calls to the malloc functions are deliberate excepted from
the rule to avoid PLTs. Therefore it is possible to intercept all
malloc calls through an interceptor object. That's safe, hooks are
not.