Catching C code bugs

List of things so I won't forget about them. I think I've already forgotten some: