🚨 suppress UBSAN warning

This commit is contained in:
Niels Lohmann 2022-07-21 15:09:01 +02:00
parent 002765c0e0
commit f5c49c8532
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -170,6 +170,11 @@ struct SaxEventLoggerExitAfterStartArray : public SaxEventLogger
// To still test whether exceptions are thrown, we need to exclude these tests from UBSAN which can only
// be done with a function attribute. See
// https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#disabling-instrumentation-with-attribute-no-sanitize-undefined
#if defined(__clang__)
__attribute__((no_sanitize("undefined")))
#endif
void test_file_exception();
#if defined(__clang__)
__attribute__((no_sanitize("undefined")))
#endif