comp.lang.ada
 help / color / mirror / Atom feed
* An interesting source of coding error
@ 1999-02-01  0:00 Rakesh Malhotra
  0 siblings, 0 replies; only message in thread
From: Rakesh Malhotra @ 1999-02-01  0:00 UTC (permalink / raw)


I often read a newsgroup called comp.risks (very interesting info) and
found the following text in the most recent posting of the risks
digest.  Thought some of you may find it interesting.


Date: Thu, 28 Jan 1999 18:35:19 -0800
From: Fred Gilham <gilham@csl.sri.com>
Subject: Programming errors

I am reminded again of how shaky the software world is.

Someone has been making a major effort to clean up the code in the
FreeBSD tree.  In two days he has reported three instances of the
following common C error:

     if (x = y)

instead of

     if (x == y)

This is in running code, in an OS whose developers consider stability
to be one of its major advantages over other offerings.

He also reported some missing breaks in a switch statement---many of
us remember what THAT error did not too long ago.  [RISKS-9.61 to 71.  
Trojan horse switches in midstream?  PGN]

-Fred Gilham   gilham@csl.sri.com




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-01  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-01  0:00 An interesting source of coding error Rakesh Malhotra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox