]> git.ipfire.org Git - thirdparty/strongswan.git/commit
github: Enable AddressSanitizer if leak-detective is disabled
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 Sep 2022 15:23:55 +0000 (17:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 16 Sep 2022 13:26:43 +0000 (15:26 +0200)
commitd29af802bbb5c043123e0a876048bb2ed7fe727d
tree4ae9a6de60d8aa89c7ddc5fe61b9abc175798633
parent8a57c2ab521e4f52a28b9fb185aedf37635f425e
github: Enable AddressSanitizer if leak-detective is disabled

At least for the tests where it is available and works.  It conflicts
with the instrumentation used by the coverage and fuzzing (and possibly
sonarcloud) tests, the toolchain for the Windows builds doesn't seem to
support it, and on FreeBSD the test executables hang due to a
compatibility issue with FreeBSD's qsort(), which has been fixed [1],
but that has not made it into the clang version in the base system.

For the custom OpenSSL build, debug symbols are enabled so we can
suppress some leaks properly.

[1] https://github.com/llvm/llvm-project/issues/46176
scripts/test.sh