File tree 2 files changed +7
-1
lines changed
system/lib/compiler-rt/lib
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,8 @@ struct __sanitizer_file_handle {
427
427
};
428
428
#endif
429
429
430
- #if SANITIZER_MAC
430
+ // These fields are not actually pointers, and so wasm64 must use unsigned and not uptr for them
431
+ #if SANITIZER_MAC || SANITIZER_EMSCRIPTEN
431
432
struct __sanitizer_msghdr {
432
433
void *msg_name;
433
434
unsigned msg_namelen;
Original file line number Diff line number Diff line change @@ -75,13 +75,18 @@ void InitializeFlags() {
75
75
parser.ParseString (__ubsan_default_options ());
76
76
// Override from environment variable.
77
77
#if SANITIZER_EMSCRIPTEN
78
+ #ifdef __wasm64__
79
+ // FIXME: support UBSAN in wasm64.
80
+ abort ();
81
+ #else
78
82
char *options = (char *) EM_ASM_INT ({
79
83
return withBuiltinMalloc (function () {
80
84
return allocateUTF8 (Module[' UBSAN_OPTIONS' ] || 0 );
81
85
});
82
86
});
83
87
parser.ParseString (options);
84
88
emscripten_builtin_free (options);
89
+ #endif
85
90
#else
86
91
parser.ParseStringFromEnv (" UBSAN_OPTIONS" );
87
92
#endif // SANITIZER_EMSCRIPTEN
You can’t perform that action at this time.
0 commit comments