Re:Apple releases OS X Mavericks 10.9.2 with SSL fix
by phlo on Wednesday February 26, 2014 @06:57AM
(#7304332)
In this case, the very test you're describing would not have worked. For a better writeup, see agl's post[1] on the matter. The basic gist of it: On affected systems, the server may use any combination of private key and certificate. Most SSL libraries used on the server side will make sure the moduli of cert and private key match (and abort if this isn't the case). Unit testing would thus require a server with some modifications to its SSL library (OpenSSL, in most cases).
What would have caught the bug: automatic code indentation or any sort of compile-time warnings about dead code.
Re:Apple releases OS X Mavericks 10.9.2 with SSL fix
by aethr on Wednesday February 26, 2014 @06:16PM
(#7308951)
I see what you mean, the amount of work and foresight needed to predict the bug and write a test for it does seem unrealistic in that light. Hingdsight is 20/20, etc.
Re:Apple releases OS X Mavericks 10.9.2 with SSL fix
by sneak on Tuesday February 25, 2014 @07:19PM
(#7301793)
Two entire operating systems.
Re:Apple releases OS X Mavericks 10.9.2 with SSL fix
by pritambaral on Wednesday February 26, 2014 @03:34AM
(#7303708)
One single library.
The Apple bug isn't really in that class of exploit. It's a simple coding/merge error, and it's actually a regression from previously working code. One of the things that worries me is that this bug would have been caught so easily with basic unit tests.
Are we meant to think that Apple's build process doesn't use unit testing? Seems unlikely. Or perhaps this component didn't warrant an extensive test suite? I hope not! Not really sure what the explanation is.I mean, I certainly can't claim that all my code is run through extensive tests before every deploy, but then I'm not working on the security tools that underpin an entire operating system.