Nicolas Williams wrote: > On Fri, Dec 19, 2008 at 09:14:37PM +0100, Roland Mainz wrote: > > Will this even work if another library is used for |malloc()|&&|free()| > > calls (IMO it should work but I am not sure about the case when an > > application is linked via -B direct) ? > > Yes, it will: malloc() and friends are marked as NODIRECT in libc, which > means they can be interposed on freely by the application, even when > they are called from within libc itself.
Devils advocate question: What happens if someone intercepts |asprintf()| or |vasprintf()| with his/her own function which doesn't use the default |malloc()| () ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)
