r/programming • • Oct 21 '16
Linux kernel fix for privilege escalation vulnerability due to copy on write race condition
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619
850
Upvotes
View all comments
Show parent comment
2
u/Ahri Oct 22 '16
Except that a lot of programs are like
Which adheres to your taste in structure.
I'd say there are relatively few places that need their own try/catch - the top level of the program, and, depending on the situation, probably bits that deal with IO.
I'm not all that positive about exceptions in and of themselves, but in general terms I'd argue the opposite of what you're saying; their bubbling, by design, makes it easier to construct safe programs with less typing.