From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-30 15:13:32 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!tdsnet-transit!newspeer.tds.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: 30 Sep 2003 17:13:30 -0500 Organization: LJK Software Message-ID: References: <3F78E850.8010401@comcast.net> <3F79EC72.3@comcast.net> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1064959969 29094 192.135.80.34 (30 Sep 2003 22:12:49 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Tue, 30 Sep 2003 22:12:49 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:43 Date: 2003-09-30T17:13:30-05:00 List-Id: In article <3F79EC72.3@comcast.net>, "Robert I. Eachus" writes: > tmoran@acm.org wrote: >>>As for a Get_Line function returning an Unbounded_String, >> >> Isn't that an open invitation to a denial-of-service buffer (available >> RAM) overflow? > > Then don't use it when reading from an untrusted source. You will > always have the option of choosing a fixed buffer size and reading into > it without the possibility of overflow that exists now. > > But just because there are some programs where it may cause problems > isn't a reason to deny it to others. Treating exceptional circumstances with an exception handler seems like the right thing to do.