Add flags to enable sanitizers and fix issues found by them
This enables two new arguments for make
:
-
sanitize=yes
: Enable sanitizers and print issues during program execution. -
sanitize-strict=yes
: Enable sanitizers, switch toolchain to Clang (to get more sanitizers), and abort the program when the first issue is detected.
It also enables the sanitizers in the unit and integration tests.
As the implementation of all these sanitizers lead to several issues to be discovered, all commits after the first two (which enable the sanitizers in the Makefile
and CI) fix those issues.
Fixes: #55 (closed), #110 (closed)
Edited by Felix Walter