Skip to content

Commit

Permalink
Suppress UB warnings regarding indirect function calls
Browse files Browse the repository at this point in the history
Like for POSIX systems, we pass `-fno-sanitize=function`.

Closes GH-17462.
  • Loading branch information
cmb69 committed Jan 17, 2025
1 parent e1c4c03 commit 7dbfacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/build/confutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3739,7 +3739,7 @@ function add_asan_opts(cflags_name, libs_name, ldflags_name)
var lib_dir = get_clang_lib_dir();

if (!!cflags_name) {
ADD_FLAG(cflags_name, "-fsanitize=address,undefined");
ADD_FLAG(cflags_name, "-fsanitize=address,undefined -fno-sanitize=function");
}
if (!!libs_name) {
if (TARGET_ARCH == 'x64') {
Expand Down

0 comments on commit 7dbfacb

Please sign in to comment.