Re: Detecting the presence of Guard Malloc in code?
Re: Detecting the presence of Guard Malloc in code?
- Subject: Re: Detecting the presence of Guard Malloc in code?
- From: "Timothy J. Wood" <email@hidden>
- Date: Fri, 3 Feb 2006 09:55:46 -0800
On Feb 3, 2006, at 9:50 AM, Nick Zitzmann wrote:
I already tried using NSIsSymbolNameDefined() and _dyld_func_lookup
() with a number of different combinations of GMmalloc (GMmalloc,
_GMmalloc, __dyld_GMmalloc) and none of them are returning a true
value. Is there a method that works, and if so, then what is it?
I haven't tried case specifically, but I'd assume you could detect
this looking at the list of Mach-O images loaded via the various NS/
dyld APIs.
You could also presumably modify your NSTask launching code to
clear DYLD_INSERT_LIBRARIES in the environment it passes to avoid
having Guard Malloc loaded in the child.
-tim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden