by derekp7 · 11y ago · 0 comments
For example, doing a strcpy(dest, dest + 1) will work in most cases, but if done on 64-bit Linux with a CPU that has sse4 optimizations, you will get random corruption on certain string lengths. (The C standard says that the behavior in this case is undefined). I'd like to see a list of items such as this to watch out for when auditing code.
Has a lot of rules of the form "Do Not ..."
[0] http://blog.llvm.org/2013/04/testing-libc-with-fsanitizeunde...