| delorie.com/archives/browse.cgi | search |
| Date: | Thu, 17 Jul 2003 17:50:54 +0200 |
| From: | "Eli Zaretskii" <eliz AT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | giva AT bgnett DOT no |
| Message-Id: | <7458-Thu17Jul2003175053+0300-eliz@elta.co.il> |
| X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
| CC: | djgpp AT delorie DOT com |
| In-reply-to: | <08da01c34c6b$be890bd0$0600000a@broadpark.no> (giva@bgnett.no) |
| Subject: | Re: malloc/free blues - for Peter Claessens |
| References: | <3F156434 DOT 3000508 AT psy DOT kuleuven DOT ac DOT be> <3F16A652 DOT 24B6FEA5 AT psy DOT kuleuven DOT ac DOT be> <08da01c34c6b$be890bd0$0600000a AT broadpark DOT no> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "Gisle Vanem" <giva AT bgnett DOT no> > Date: Thu, 17 Jul 2003 16:00:13 +0200 > > #include <crt0.h> > int _crt0_startup_flags = _CRT0_FLAG_FILL_SBRK_MEMORY | > _CRT0_FLAG_FILL_DEADBEEF; > > in the main module. I think this will only help if an uninitialized pointers are passed to `free'. It is much more probable that the bug is in some code that writes past the end of an allocated buffer; in that case, I don't think the above will help (but it won't hurt to try that).
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |