Mail Archives: djgpp/2001/06/30/06:31:09
On Fri, 29 Jun 2001 0:56:41, "Charles Sandmann"
<sandmann AT clio DOT rice DOT edu> sat on a tribble, which squeaked:
>This won't catch huge overruns, but if you write-protect the entire text
>section you will at least prevent overwrite of executable code and catch
>errors sooner with correct error messages.
For non-self-modifying-code (and self-modifying is rare these days --
self-modifying algorithms work best by using function pointers or ints
and switch statements) this should work. Maybe it should even become
the default.
>Critical writeable data could be even toggled to be read-only, read-write,
>read-only for the really paranoid.
For something mission-critical that didn't become too slow as a
result, it's worth consideration. OS code. Nuclear plant software. The
next Mars probe. :-)
--
Bill Gates: "No computer will ever need more than 640K of RAM." -- 1980
"There's nobody getting rich writing software that I know of." -- 1980
"This antitrust thing will blow over." -- 1998
Combine neo, an underscore, and one thousand sixty-one to make my hotmail addy.
- Raw text -