• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting the presence of Guard Malloc in code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • [SOLVED] Re: Detecting the presence of Guard Malloc in code?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Detecting the presence of Guard Malloc in code? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Detecting the presence of Guard Malloc in code?
  • Next by Date: Re: Default directories for multiple NSSavePanels
  • Previous by thread: Detecting the presence of Guard Malloc in code?
  • Next by thread: [SOLVED] Re: Detecting the presence of Guard Malloc in code?
  • Index(es):
    • Date
    • Thread