Re: [Lit.] Buffer overruns

From: Mok-Kong Shen (mok-kong.shen_at_t-online.de)
Date: 01/16/05


Date: Sun, 16 Jan 2005 16:38:34 +0100


Paul Rubin wrote:

> daw@taverner.cs.berkeley.edu (David Wagner) writes:
>
>>But if your system of reasoning is "sound", then if you know something
>>for certain, it has to be true. I suggest only using systems of reasoning
>>that are sound. In this case, you don't need the revision suggested above.
>
>
> But the best way to know if reasoning is really sound, is to check it
> by computer. If the compiler can verify that the bounds check is not
> needed, then it should certainly be omitted.

I think that modern compilers are smart enough to avoid
many sorts of uncessary computations. But this depends
also on the PL. Of course, the capability of a compiler
to optimize is inherently limited. However, for example,
in ADA the programmer could explicitly suppress certain
checks in selected regions of his programs.

M. K. Shen



Relevant Pages

  • Re: Test-Driven Development
    ... > Michael Mendelsohn wrote: ... >> input sequences I am torturing it with, and that my compiler has been ... I would expect you achieve this by reasoning about your code, ... over a continuous input range without reasoning about the code involved ...
    (comp.programming)
  • Re: Can extra processing threads help in this case?
    ... Will your "sound reasoning" disprove my figures? ... carefully-guarded secrets of modern operating systems, ... I am curious where you are finding these single-core ...
    (microsoft.public.vc.mfc)
  • Re: Why purely functional languages?
    ... Read up on PCC before you bother. ... demonstrations in 2 steps and avoid reasoning about machine code ... directly (except you're a compiler writer and want to demonstrate ... You started out with asserting how purity is ...
    (comp.lang.functional)
  • Re: KY USA: Child Dies From Dog Attack Injuries
    ... Ediot is at his funniest when he tries to sound smart. ... >> other people's posts, etc. ... >> behavior by reasoning with him. ... that your posts are boring and irrelevant to a newsgroup on true crime. ...
    (alt.true-crime)
  • Re: A reasonable argument against double blind tests?
    ... could be useful, speakers, it is useless;-) ... sometimes even absence of reasoning. ... "All amps sound alike, but some sound more alike than others". ...
    (rec.audio.opinion)