www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/28/14:38:22

From: "Marcus" <mesthlm AT hem DOT passagen DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Prevent crash on free()
Date: Mon, 28 Feb 2000 19:15:29 +0100
Organization: Telenordia
Lines: 25
Message-ID: <89ee3g$8pf$1@zingo.tninet.se>
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>
NNTP-Posting-Host: 193.150.200.251
X-Trace: zingo.tninet.se 951761840 9007 193.150.200.251 (28 Feb 2000 18:17:20 GMT)
X-Complaints-To: abuse AT algo DOT net
NNTP-Posting-Date: 28 Feb 2000 18:17:20 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

*sigh*
You are kidding with me, right? I DON'T want to protect any programmer.
I take it again. I have a string, ok?
How do I know if this string is not automatic freed?

If I have a function like this
func (char* str)

Is it impossible to know if the function have been called this way
func ("...");
or
char* a = malloc(10);
func (a);
?

Do you understand what I mean? And what is YAMD?

--
/regards Marcus

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019