comp.lang.ada
 help / color / mirror / Atom feed
* Idea: Array Boundary Checks on Write Access Only
@ 1998-06-15  0:00 Markus Kuhn
  1998-06-15  0:00 ` Peter Amey
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Markus Kuhn @ 1998-06-15  0:00 UTC (permalink / raw)



Here is a suggestion for Ada compiler developers:

Add a compiler configuration option that suppresses array index
boundary checks only for *read* access to array elements.

Array boundary checks in Ada are a major advantage over C/C++
and add a lot to the safety and debugability of the language.
However the checks are also a significant performance loss
unless they are deactivated. A useful compromise would be an
option that causes the compiler to add boundary checks only
when an array element is written, but not when it is read.
Out-of-boundary array write accesses are dangerous because they can
destroy other data structures and can cause failure inside completely
unrelated objects. Therefore, in security critical applications,
it is very desireable to deactivate for performance reasons
only the checks for the less dangerous read accesses that if
they go wrong should not cause malfunction within other objects.

Are there already Ada compilers around that do this?

Markus

-- 
Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK
email: mkuhn at acm.org,  home page: <http://www.cl.cam.ac.uk/~mgk25/>




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~1998-07-09  0:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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     ` Stuart Palin
1998-06-18  0:00     ` dennison
1998-06-20  0:00       ` Robert Dewar
1998-06-18  0:00     ` dennison
1998-06-18  0:00     ` Lieven Marchand
1998-06-20  0:00       ` Robert I. Eachus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox