Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!ux1.cso.uiuc.edu!aries!mcdonald From: mcdonald@aries.uiuc.edu (Doug McDonald) Newsgroups: comp.std.c Subject: Re: Out-of-bounds pointers Message-ID: <1989Oct11.201849.7470@ux1.cso.uiuc.edu> Date: 11 Oct 89 20:18:49 GMT References: <1009@mtxinu.UUCP> <12570028@hpclwjm.HP.COM> <868@crdos1.crd.ge.COM> <217@bbxsda.UUCP> <1989Oct7.131404.656@jarvis.csri.toronto.edu> <220@bbxsda.UUCP> <1989Oct10.163732.3241@jarvis.csri.toronto.edu> <240@bbxsda.UUCP> <1989Oct11.183328.29178@ux1.cso.uiuc.e Reply-To: mcdonald@aries.scs.uiuc.edu (Doug McDonald) Organization: ^ Lines: 15 There are most certainly C implementations where previously valid pointers can become invalid without the program specifically doing anything. There is grave doubt that this example can be called a "hosted" C implementation. Actually, pointers coming from casts of ordinarily declared (static or automatic) variables, and from "malloc" will not die without a call to "free". But the operating system return pointers to other things (in the heap or within the OS itself) that most certainly WILL become invalid without notice during some future execution of OS code. This is known as Microsoft Windows. The manual views using "malloc" as closely related to child molestation. It claims you are supposed to use the calls that result in dying pointers. Doug McDonald