delorie.com/archives/browse.cgi | search |
From: | sandmann AT clio DOT rice DOT edu (Charles Sandmann) |
Message-Id: | <9906242316.AA02689@clio.rice.edu> |
Subject: | Re: Re: gcc-crash - and a possible solution |
To: | eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) |
Date: | Thu, 24 Jun 1999 18:16:26 -0600 (CDT) |
Cc: | erik2 DOT berglund AT telia DOT com, pavenis AT lanet DOT lv, djgpp-workers AT delorie DOT com |
In-Reply-To: | <Pine.SUN.3.91.990624115518.25071D-100000@is> from "Eli Zaretskii" at Jun 24, 99 11:57:05 am |
X-Mailer: | ELM [version 2.4 PL20] |
Reply-To: | djgpp-workers AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> > I was wondering if CC1.EXE thereby overwrites parts > > of Windows, maybe the DPMI server. > > This cannot happen, because Windows lives in another virtual machine. > That is, Windows and the DOS box have different sets of page tables, > so there's no way a DOS program can write into the Windows address > space, at least not by dereferencing a pointer. Actually Windows 3.x and 9.x use a single set of page tables, so when you do the nearptr hack you can overwrite everything .... And if you end up with misordered blocks like this, you are also available to nuke anything.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |