Undefined behavior ( see <a href="http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html" rel="nofollow">http://blog.llvm.org/2011/05/what-every-c-programmer-should-...</a> ) make it difficult to make it perfectly secure.