Re: Critical crypto bug leaves Linux, hundreds of apps open ...
by zvrba on Wednesday March 05, 2014 @03:44AM
(#7346016)
> I don't know what you could call the root case of this one.
Bad software engineering. Their internal routines return negative value to indicate failure, but to the caller they translate it to true/false.
In Apple's case "goto" made it possible for the bug to occur, but there's no reason a different statement (or other typo) could cause equivalent damage.
I think a common thread with both of these bugs is testing the failure cases, but to be fair to both validating software by finding bugs and/or validating functionality is affirming the consequent and you eventually need to ship.