Is it possible to configure Valgrind to return a non-zero exit status if invalid reads are detected but no actual memory leaks?
(I want to use Valgrind as part of some automated tests for student C code submissions.)
Is it possible to configure Valgrind to return a non-zero exit status if invalid reads are detected but no actual memory leaks?
(I want to use Valgrind as part of some automated tests for student C code submissions.)
You can use the option --error-for-leak-kinds=none :
--errors-for-leak-kinds=kind1,kind2,.. which leak kinds are errors?
[definite,possible]
where kind is one of:
definite indirect possible reachable all none