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-Thread: 103376,8f802583e5c84fa X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 27 Sep 2005 12:59:23 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: String filtering References: X-Newsreader: Tom's custom newsreader Message-ID: <-NadnU7jqYrhFaTeRVn-tw@comcast.com> Date: Tue, 27 Sep 2005 12:59:24 -0500 NNTP-Posting-Host: 24.6.102.223 X-Trace: sv3-MfwIBVZu2TOc/lw0DEwe4X6odVQmzzaB9LR7H6wkaBKBscdum1Qw1URmvrFgNTTU3zg5awUjIlotGp1!l9kQXkyykoUmdxjZhHVGp0DNG4xK8TdQ7+ZZ8LF40U9AthdfVrpu2Te1QE/0WaC/4Y8kjTh7hs1l X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5200 Date: 2005-09-27T12:59:24-05:00 List-Id: >I am sanitising data received over a socket, which may be of any >length. Hence my use of unbounded_string, ... Yes indeed. For instance some bad program might send you an unlimited series of characters and your program would work, then crawl as it thrashed in virtual memory, then eventually crash as everything was full. Surely there's some number above which "this can't be right!" and that can be your Fixed or Bounded string size.