The clang developers posted some great examples a while back, in a post every C programmer should read. Some interesting ones not mentioned before:
- Signed integer overflow - no it's not ok to wrap a signed variable past its max.
- Dereferencing a NULL Pointer - yes this is undefined, and might be ignored, see part 2 of the link.