delorie.com/archives/browse.cgi | search |
From: | Nate Eldredge <neldredge AT hmc DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Prevent crash on free() |
Date: | 29 Feb 2000 11:23:43 -0800 |
Organization: | InterWorld Communications |
Lines: | 22 |
Message-ID: | <83k8jn95j4.fsf@mercury.st.hmc.edu> |
References: | <89e5e3$8g1$1 AT cubacola DOT tninet DOT se> <89e72m$hpt$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <89e7oq$cmv$1 AT cubacola DOT tninet DOT se> <89ecto$jum$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <89ee3g$8pf$1 AT zingo DOT tninet DOT se> <89gqib$jah$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <89gvv0$j0h$1 AT cubacola DOT tninet DOT se> |
NNTP-Posting-Host: | mercury.st.hmc.edu |
Mime-Version: | 1.0 |
X-Trace: | nntp1.interworld.net 951852355 66773 134.173.45.219 (29 Feb 2000 19:25:55 GMT) |
X-Complaints-To: | usenet AT nntp1 DOT interworld DOT net |
NNTP-Posting-Date: | 29 Feb 2000 19:25:55 GMT |
User-Agent: | Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Marcus" <mesthlm AT hem DOT passagen DOT se> writes: > "Hans-Bernhard Broeker" <broeker AT acp3bf DOT physik DOT rwth-aachen DOT de> wrote: > > I'm most definitely not kidding you... > Okey, I understand... > > > Essentially, yes, it is. Anyway, it is none of your function's... > Hehe.... maybe it is... maybe it is... > I know exactly what I'm doing. Can't you just tell me how? Please! If you want to deal with deep innards of the system, then you get to read the source. Get djlsr203b.zip and start looking. src/libc/ansi/stdlib/malloc.c should be a good start. From that you should be able to find a mechanism to tell if a block seems to be malloc'ed. But for heaven's sake don't use it in released software, because whatever you write WILL break with future versions. -- Nate Eldredge neldredge AT hmc DOT edu
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |