🚨 suppress UBSAN warning
This commit is contained in:
parent
002765c0e0
commit
f5c49c8532
@ -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
|
// 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
|
// be done with a function attribute. See
|
||||||
// https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#disabling-instrumentation-with-attribute-no-sanitize-undefined
|
// 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__)
|
#if defined(__clang__)
|
||||||
__attribute__((no_sanitize("undefined")))
|
__attribute__((no_sanitize("undefined")))
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user