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.2 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Thu, 03 Mar 2011 22:39:12 +0100 Message-ID: References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <31c357bd-c8dc-4583-a454-86d9c579e5f4@m13g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <4d4c232a$0$28967$882e7ee2@usenet-news.net> <4D4D6506.50909@obry.net> <4d50095f$0$22393$882e7ee2@usenet-news.net> <4d6d56c4$0$11509$882e7ee2@usenet-news.net> <16u9ka51wbukr$.1fj2sb73j9rv6.dlg@40tude.net> <4d6d627b$0$11509$882e7ee2@usenet-news.net> <74986d0a-0d5b-4396-8c77-adff72e870a2@d26g2000prn.googlegroups.com> <4d6eafc7$0$17913$a8266bb1@postbox2.readnews.com> <4d6eb309$0$17913$a8266bb1@postbox2.readnews.com> <4d6ed212$0$17960$a8266bb1@postbox2.readnews.com> <4d7008e6$0$17918$a8266bb1@postbox2.readnews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: individual.net 8eygpimB699rk4d+WMecYwtcRFRFf6LGyOH5FbtZ+BY8zMsCT7 Cancel-Lock: sha1:Hyuj85IMG+KHBLJqtaDx3jzW1uc= User-Agent: Opera Mail/11.01 (Win32) Xref: g2news1.google.com comp.lang.ada:17784 Date: 2011-03-03T22:39:12+01:00 List-Id: Hyman Rosen wrote: > On 3/3/2011 4:24 PM, Vinzent Hoefler wrote: >> Consider the 1:10 rule > > Anecdote. Probably invented by people who want to sell fancy > design tools and Ada compilers :-) You mean fancy tools like PC-Lint, Polyspace, VectorCAST? > Who says an error found by > users is the result of design problems and is expensive to fix? Nobody. Funny thing about bugs is that you don't know them in advance, so anything here is just based on statistics here. And we know, that statistics is just another way to lie to people. > Maybe it's just an off-by-one error that's causing an exception > to be thrown and the solution is to rejigger the loop a bit. Or maybe, it's just a simple missing size check and the whole freaking mail server is taken over by some spammer. :-> See, with open source you can even tell the user to "fuc^H^Hix it yourself" and save the maintenance cost. ;) Vinzent. -- A C program is like a fast dance on a newly waxed dance floor by people carrying razors. -- Waldi Ravens