From: Dan.Pop@cern.ch (Dan Pop)
Subject: Re: Dereferencing NULL pointer?
Date: 1997/05/23 [thread overview]
Message-ID: <danpop.864418896@news.cern.ch> (raw)
In-Reply-To: 5m239e$ajk@charnel.ecst.csuchico.edu
In <5m239e$ajk@charnel.ecst.csuchico.edu> tsaylor@ecst.csuchico.edu (Todd M. Saylor) writes:
>These things I already know, so I think I'll skip the advice to read a
>C book. We are porting a "million line plus" application, not just a
>single program, so what we are really hoping for is some way of treating
>the NULL pointer as a pointer to a NUL character. This is the way it
>ends up working on the other platforms we've used (yes, I know the results
>are technically undefined, but many platforms have linker switches or other
>tricks to allow this). Blame it on legacy code.
Dereferencing a null pointer (yeah, "null" is spelled in lower case in
this context) is a BUG. And bugs are fixed, not worked around. Legacy
code is not an excuse for sloppiness.
Dan
--
Dan Pop
CERN, IT Division
Email: Dan.Pop@cern.ch
Mail: CERN - PPE, Bat. 31 1-014, CH-1211 Geneve 23, Switzerland
next prev parent reply other threads:[~1997-05-23 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-21 4:00 Dereferencing NULL pointer? Todd M. Saylor
1997-05-21 4:00 ` Steve VanDevender
1997-05-22 4:00 ` Todd M. Saylor
1997-05-23 4:00 ` Dan Pop [this message]
1997-05-28 4:00 ` Vikas Sontakke TOEM
1997-05-29 4:00 ` Craig Neth USG
1997-05-29 4:00 ` Craig Neth USG
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox