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,839916f6ca3b6404 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!n33g2000pri.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: not null Date: Wed, 4 Mar 2009 08:16:25 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <49ae93bc$0$31872$9b4e6d93@newsspool3.arcor-online.net> <49ae9cc4$0$31877$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1236183385 18898 127.0.0.1 (4 Mar 2009 16:16:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 4 Mar 2009 16:16:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n33g2000pri.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4910 Date: 2009-03-04T08:16:25-08:00 List-Id: On Mar 4, 7:22 am, Georg Bauhaus wrote: > The overall impact of refs not "attached" (to use > an Eiffel term; not null is spreading through languages > it seems; C++, too?) is a financial disaster, with > possibly one exception: there is money in a business > selling software components whose purpose is to guard > the holes kept open by operating system sellers. > > (Antivirus etc.) Is there any basis for this last comment? I've seen lots of reports of vulnerabilities caused by buffer overflows combined with lack of range checking, and by double-deallocation errors (deallocating the same chunk of memory twice and making hash of your heap structures), but I don't recall seeing any caused by null references. Errors involving null references seem a lot more likely just to make programs die unexpectedly, than to allow arbitrary code execution or the like. -- Adam