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: glibc malloc hook deprecation considered harmful


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.


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