“Seibel: But there is a difference between a denial-of-service attack and an exploit where you get root and can then do whatever you want with the box. Thompson: But there are two ways to get root—one is to overflow a buffer and the other is to talk the program into doing something it shouldn't do. And most of them are the latter, not overflowing a buffer. You can become root without overflowing any buffers. So your argument's just not on. All you've got to do is talk su into giving you a shell—the paths are all there without any run-time errors. Seibel: OK. Leaving aside whether it results in a crash or an exploit or whatever else—there is a class of bugs that happen in C, and C++ for the same reason, that wouldn't happen in, say, Java. So for certain kinds of applications, is the advantage that you get from allowing that class of bugs really worth the pain that it causes? Thompson: I think that class is actually a minority of the problems. Certainly every time I've written one of these non-compare subroutine calls, strcpy and stuff like that, I know that I'm writing a bug. And I somehow take the economic decision of whether the bug is worth the extra arguments. Usually now I routinely write it out. But there's a semantic problem that if you truncate a string and you use the truncated string are you getting into another problem. The bug is still there—it just hasn't overflown the buffer.”
―
Coders at Work: Reflections on the Craft of Programming
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From

5,347 ratings, average rating, 284 reviews
Open Preview
Browse By Tag
- love (100957)
- life (78984)
- inspirational (75539)
- humor (44228)
- philosophy (30813)
- inspirational-quotes (28702)
- god (26815)
- truth (24632)
- wisdom (24453)
- romance (24282)
- poetry (23112)
- life-lessons (22503)
- quotes (20906)
- death (20490)
- happiness (18908)
- hope (18455)
- faith (18289)
- inspiration (17223)
- travel (16815)
- spirituality (15637)
- relationships (15430)
- religion (15362)
- motivational (15239)
- life-quotes (15204)
- love-quotes (15041)
- writing (14906)
- success (14151)
- motivation (13097)
- time (12807)
- science (12055)