[Cryptography] GOTO Considered Harmful
iang at iang.org
Tue Mar 4 09:08:01 EST 2014
On 28/02/2014 18:07 pm, Patrick Chkoreff wrote:
> I refactored Apple's code:
> You're welcome.
Oh, Patrick, your cup runneth over!
We've got overloading of error variables, use of manifest numbers (1 as
success, 0 fail, -1 gotcha), use of the famed goto cleanup mechanism,
leading to more gotos than worms in an apple, ... and now a patch which
adds a separate goto branch!
All kudos to Nikos Mavrogiannopoulos, who took the initiative to trawl
through this code in the wake of the apple bug.
More information about the cryptography