I want to use static analysis tools to detect null-pointer dereferences and memory leaks in Linux device drivers (linux-3.17.2).
I have tried some tools:
- Clang static analyzer
It shows some unimportant warnings, such as "Value stored to 'usbhid' during its initialization is never read". - Smatch and Cppcheck They find some defects, but many null-pointer dereferences found by maintainers or myself can not be detected.
Could you recommend some other useful static tools to detect real bugs in Linux device drivers?
Here is a list of available tools. Depending whether you look for "free" tools or commercial - it gives you a good overview. One additional possibility is the coverity scan project - where open source projects can apply and get a free scan from coverity.
Other opions are: