Is there some set of tools you all use to help find bad code? Specifically, I'm working with a large code base (monetdb), and have found two instances where the fopen() return value was not checked.
Now I'd like to search the tree and find all instances of this bug. How do you do this? Must it be manual or are there static analysis tools (e.g., grep & awk or perhaps clang) that you use. (I didn't mark as OT b/c I'm working towards an OpenBSD port of this most-excellent db.) Thanks, m