Path: utzoo!utgpu!watmath!maytag!aries5!lhf From: lhf@aries5 (Luiz H. deFigueiredo) Newsgroups: comp.lang.c Subject: comp.std.c Keywords: ANSI C, hardware protection, out-of-bounds pointers Message-ID: <426@maytag.waterloo.edu> Date: 30 Aug 89 19:13:14 GMT Sender: daemon@maytag.waterloo.edu Reply-To: lhf@aries5 (Luiz H. deFigueiredo) Distribution: world Organization: Computer Systems Group, University of Waterloo Lines: 26 There has been some discussion on the net about hardware protection and out-of-bounds pointers. ANSI C says that is *is* legal to use mention (but not dereference) a pointer just out-of-bounds as in char a[N]; char *last=a+N; /* Here! */ char *p; for (p=a; phead; p--) do something else; ------------------------------------------------------------------------------- Luiz Henrique de Figueiredo internet: lhf@aries5.waterloo.edu Computer Systems Group bitnet: lhf@watcsg University of Waterloo (possible domains are waterloo.edu and uwaterloo.ca) ------------------------------------------------------------------------------- eof