www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/30/06:31:09

From: invalid AT erehwon DOT invalid (Graaagh the Mighty)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CWSDPMI/DJGPP integration [was Re: Peculiar behavior of program.]
Organization: Low Charisma Anonymous
Message-ID: <3b3d9a68.364006408@news.primus.ca>
References: <3b3bcc05 DOT sandmann AT clio DOT rice DOT edu> <3b3c14b3 DOT 264226436 AT news DOT primus DOT ca> <3b3bd249 DOT sandmann AT clio DOT rice DOT edu>
X-Newsreader: Forte Free Agent 1.11/32.235
Lines: 23
Date: Sat, 30 Jun 2001 09:24:56 GMT
NNTP-Posting-Host: 207.176.153.6
X-Complaints-To: news AT primus DOT ca
X-Trace: news1.tor.primus.ca 993893376 207.176.153.6 (Sat, 30 Jun 2001 05:29:36 EDT)
NNTP-Posting-Date: Sat, 30 Jun 2001 05:29:36 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


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