News for hackers. Stuff that matters.
Re:Linux Local Privilege Escalation via SUID /proc/pid/mem W... by chalst on Monday January 23, 2012 @05:12AM (#3499801)
The reason why Linus Torvalds and others prefer to handle errors using goto is that it avoids the main branch of the code receiving an additional indentation, as it would if it were wrapped in a conditional. Not to do so would make the code less readable.

Note that these gotos are always local jumps (that is, they are in the same code block), at the same indentation level, and they are forward jumps (so the control flow is much the same as for a conditional). They are easy to understand and audit, and not similar to the goto examples that Dijkstra criticised for making code hard to reason about.

Re:Linux Local Privilege Escalation via SUID /proc/pid/mem W... by arnnr on Monday January 23, 2012 @03:30PM (#3501997)
This. Also python's execeptions can be treated as limited goto's: http://docs.python.org/faq/design.html#why-is-there-no-goto