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,FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!q11g2000yqh.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: not null Date: Thu, 5 Mar 2009 17:07:27 -0800 (PST) Organization: http://groups.google.com Message-ID: <25777a68-d857-4de6-a169-d4ba5b310b89@q11g2000yqh.googlegroups.com> References: <49ae93bc$0$31872$9b4e6d93@newsspool3.arcor-online.net> <49ae9cc4$0$31877$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 79.91.74.149 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1236301647 13016 127.0.0.1 (6 Mar 2009 01:07:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 6 Mar 2009 01:07:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q11g2000yqh.googlegroups.com; posting-host=79.91.74.149; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4955 Date: 2009-03-05T17:07:27-08:00 List-Id: On 4 mar, 17:16, Adam Beneschan wrote: > Errors > involving null references seem a lot more likely just to make programs > die unexpectedly, than to allow arbitrary code execution or the like. > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- Ada= m Indeed, as long as a null reference is a $0000000.... memory offset, most of modern processor allow exception to be raised in such circumstance (at least which special access right on the memory block starting at this offset, or else with special descriptors). It is likely to be detected as soon as possible.