Re: failmalloc equivalent for MacOS X
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcibDvJ6MTBdJAcCEd2qDwAdT0T19A== Thread-topic: failmalloc equivalent for MacOS X User-agent: Microsoft-Entourage/11.4.0.080122 On 4/10/08 8:49 AM, "David Geldreich" <david.geldreich@free.fr> wrote:
Hi all,
Le 10 avr. 08 à 14:06, Army Research Lab a écrit :
I'd love to have a copy! However, I really think that it should also be built into libgmalloc. As you noted, and as mentioned on the failmalloc page, too many people assume that their code will work correctly, 100% of the time. Even Apple is doing it! :) I'd rather test, test, test, and then test some more, so that my users don't get stuck with my bad code. Memory testing should be put into libgmalloc for that reason.
So, I'm willing to work on the source for libgmalloc, if it is available for download. Is it?
I have (minimally) packaged my sources and they are available at : http://david.geldreich.free.fr/dev.html
I have used it on Tiger but it should work on Leopard as well.
I am just replacing malloc and realloc and this seems to be enough to make :
- malloc/realloc returns NULL - new throw std::bad_alloc -NXZone*alloc to fail
Any bug reports, enhancement, suggestions are welcomed.
Thanks, I looked at it, and it looks very clean and simple. I have a couple of ideas of what I'd like to do, I'll think more about them tonight and send you the patches. Thanks, Cem Karan _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Army Research Lab