Re: "Perfect" or "Provable" security both crypto and non-crypto?

From: Rob Warnock (rpw3_at_rpw3.org)
Date: 09/14/04


Date: Tue, 14 Sep 2004 04:30:08 -0500

Douglas A. Gwyn <DAGwyn@null.net> wrote:
+---------------
| Another thing the language designer could do that would
| help would be to make it hard to write one thing while
| thinking another, for example, the notorious C code
| if (a = 0) ...
| which out of context is pretty easy to spot but if one's
| attention slips for an instant while coding, the bug
| might remain undetected for a long time.
+---------------

Which is why a former co-worker of mine [occasional seen here]
made a practice of always writing comparisons as "if (0 == a) ..."
so that just in case he typo'd and dropped one of the "=" the
compiler would complain at him. It looked a bit odd the first
couple of times I saw it, but eventually I started using it in
my own code too.

-Rob

-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607



Relevant Pages

  • Re: What math class to take to catch up on Modulus and DLP?
    ... Douglas A. Gwyn wrote: ... |> Normally flame wars arise from a breakdown in communication. ... | You were claiming that a design having just enough rounds to be ...
    (sci.crypt)
  • Re: Thou shalt have no other gods before the ANSI C standard
    ... Douglas A. Gwyn wrote: ... > BRG wrote: ... > C standards comittee but rather among the users. ...
    (sci.crypt)
  • Re: Public disclosure of discovered vulnerabilities
    ... Douglas A. Gwyn wrote: ... >Since it is unrealistic to expect fresh college graduates ... Mentoring and apprenticeship ...
    (sci.crypt)
  • Re: Implicit int
    ... And that was one of the PRIMARY reasons that made Microsoft make its buggy model. ... Douglas A. Gwyn wrote: ... And, if this is 80% of people, C implementation will want to keep backward compatiblity with these inept pieces of code, and the C standard will standardize this behavior, because it standardizes existing practice. ...
    (comp.std.c)
  • Re: [Lit.] Buffer overruns
    ... > Douglas A. Gwyn wrote: ... The key is in assembling the right ... >> team and then supporting them. ...
    (sci.crypt)

Quantcast