From 7394ed80c4de8b228a43c8956cf2fa1b9c6b2622 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 3 Jul 2022 21:46:44 +1000 Subject: Add clang sanitizer tests. --- openbsd-compat/bsd-misc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'openbsd-compat') diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 3b00ef6d..226a5915 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c @@ -446,3 +446,15 @@ localtime_r(const time_t *timep, struct tm *result) return result; } #endif + +#ifdef ASAN_OPTIONS +const char *__asan_default_options(void) { + return ASAN_OPTIONS; +} +#endif + +#ifdef MSAN_OPTIONS +const char *__msan_default_options(void) { + return MSAN_OPTIONS; +} +#endif -- cgit v1.2.1