LWN.net Logo

undefined behaviour

undefined behaviour

Posted Jul 17, 2009 19:43 UTC (Fri) by bluebirch (guest, #58264)
In reply to: undefined behaviour by ehabkost
Parent article: Linux 2.6.30 exploit posted

Gcc isn't assuming the program will crash with (this) undefined behaviour. Gcc is assuming that the program doesn't get into undefined behaviour. And if it does, that is a bug in the program.

The correct behaviour isÂ…, well, undefined. So opening a security hole is no less correct (by definition) than crashing or causing "demons to fly out of your nose".


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds