2 ms·
Does Valgrind give a warning when you do check errno after a successful system call?
by amelius 1y ago
Does Valgrind give a warning when you do check errno after a successful system call?
- aa-jv 1y agoValgrind doesn't specifically (although it might catch side-effects of this bug), but Coverity would, under most conditions (such as having MISRA or CERT checkers enabled), catch it. If its important to you to find these cases, use clang's static analyzer to perform deep source code analysis via scan-build. See also cppcheck and pc-lint, or PVS-Studio, each of which have means by which you can catch this error.