Change UBSAN for undefined instaed of address (#2964)

This commit is contained in:
Allen Byrne 2023-05-17 10:30:45 -05:00 committed by GitHub
parent 940bdafacb
commit c6edc887bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,8 +48,8 @@ static const char *FileHeader = "\n\
#include "H5Rpublic.h"
#if defined(__has_attribute)
#if __has_attribute(no_sanitize_address)
#define HDF_NO_UBSAN __attribute__((no_sanitize_address))
#if __has_attribute(no_sanitize)
#define HDF_NO_UBSAN __attribute__((no_sanitize("undefined")))
#else
#define HDF_NO_UBSAN
#endif