From: pfk@schnecke.offl.uni-jena.de (Frank Klemm)
Subject: Re: Idea: Array Boundary Checks on Write Access Only
Date: 1998/07/09
Date: 1998-07-09T00:00:00+00:00 [thread overview]
Message-ID: <slrn6q9g91.9o.pfk@schnecke.offl.uni-jena.de> (raw)
In-Reply-To: dewar.898490510@merv
On 22 Jun 1998 00:44:07 -0400, Robert Dewar <dewar@merv.cs.nyu.edu> wrote:
>Markus said
>
><<The reason for the crash in the end was an unhandled Ada overflow
>exception. There would have been no problem here if this piece of
>navigation system control code had been compiled without exceptions.
>>>
>
>Indeed, and I often use this case as an example of the important fact that
>runtime checking does not necessarily improve safety, and indeed if exceptions
>can be raised, it is vital that VERY careful analysis of all exceptional
>situations take place to make sure they are handled. In the absence of
>such careful analysis, running with checks on can be much more dangerous
>than with checks off. Very often, a locally violated constraint will just
>cause a local wrong value with checks off, which may not be critical,
>especially if the wrong value is in connection with a non-critical function.
>But raising an exception can have disastrous global effects if the exception
>is not properly handled.
>
Do no check for a condition if you're not known how to handle it!
--
Frank Klemm
/------\ /-----------------------------------------------------\
| eMail: || pfk@uni-jena.de | home: pfk@schnecke.offl.uni-jena.de |
| Tel: || | home: +49 (3641) 390545 |
| sMail: || Frank Klemm, Ziegesarstr. 1, D-07747 Jena, Germany |
\------/ \-----------------------------------------------------/
next prev parent reply other threads:[~1998-07-09 0:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-15 0:00 Idea: Array Boundary Checks on Write Access Only Markus Kuhn
1998-06-15 0:00 ` Peter Amey
1998-06-20 0:00 ` Robert Dewar
1998-06-21 0:00 ` Markus Kuhn
[not found] ` <dewar.898490510@merv>
1998-07-09 0:00 ` Frank Klemm [this message]
1998-06-17 0:00 ` Stephen Leake
1998-06-17 0:00 ` Markus Kuhn
1998-06-17 0:00 ` Robert A Duff
1998-06-18 0:00 ` Stuart Palin
1998-06-18 0:00 ` Anonymous
[not found] ` <6m8v02$r2l$1@xenon.inbe.net>
1998-06-18 0:00 ` Markus Kuhn
1998-06-18 0:00 ` dennison
1998-06-18 0:00 ` Stuart Palin
1998-06-18 0:00 ` dennison
1998-06-20 0:00 ` Robert Dewar
1998-06-18 0:00 ` Lieven Marchand
1998-06-20 0:00 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox