From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-22 17:25:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.shore.net!Ives.egh.com!JOHN Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec From: John Santos Subject: Re: Congratulations for the festive season In-Reply-To: <8J4V7.301892$uB.32180084@bin3.nnrp.aus1.giganews.com> Message-ID: <1011222202249.59837J-100000@Ives.egh.com> References: <3C23EA72.48874137@gce.com> <8J4V7.301892$uB.32180084@bin3.nnrp.aus1.giganews.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Sat, 22 Dec 2001 20:26:30 -0500 NNTP-Posting-Host: 209.192.204.112 X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 1009070732 209.192.204.112 (Sat, 22 Dec 2001 20:25:32 EST) NNTP-Posting-Date: Sat, 22 Dec 2001 20:25:32 EST Organization: Shore.Net, a PRIMUS Company (info@shore.net) Xref: archiver1.google.com comp.os.vms:56903 alt.sys.pdp10:8675 comp.sys.dec:10226 On Sat, 22 Dec 2001, Bill Todd wrote: > > "Dave Cherkus" wrote in message > news:Xns917F79F8FAADidtoken@199.125.85.9... > > gce wrote in news:3C23EA72.48874137@gce.com: > > > Not so. > > > The reason for the lack of buffer overflows is due to a number of > > > factors. One: VMS habitually has used descriptors to pass strings, > > > which have sizes passed. > > > > Interesting. > > > > Was this true in the PDP11 operating systems? > > Certainly on RSX, though RSTS may have had greater affection for ASCIZ > strings. As far as I can remember, RSTS didn't use ASCIZ internally anywhere. Certainly not in the monitor interfaces, which were all either fixed length strings (logical names, device names, send/receive receiver names, etc.) or were passed by length & address (CCL parsing, filename parsing, i/o and send/receive buffers, and core common.) Embedded nulls were not special characters and did not cause any particular problems. (They were illegal in file names, but were handled just like the dozens of other illegal characters -- nothing special.) Embedded nulls in I/O buffers and send/receive messages were normal and posed no problems. BASIC+ didn't use null-terminated strings either. > Where they could be used safely (and efficiently, which was not always the > case), they did have advantages. Byte-by-byte processing is at least as > efficient when dealing with a short string as the set-up involved in trying > to process it word-by-word, and condition codes make the loop-termination > check close to free (and without requiring the use of a counting register, a > resource which the 11 did not have in great profusion). > > - bill -- John Santos Evans Griffiths & Hart, Inc. 781-861-0670 ext 539