Skip to content

Commit 79af314

Browse files
committed
Suppress UB warnings regarding indirect function calls
Like for POSIX systems, we pass `-fno-sanitize=function`. Closes phpGH-17462.
1 parent 07d404a commit 79af314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/build/confutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3734,7 +3734,7 @@ function add_asan_opts(cflags_name, libs_name, ldflags_name)
37343734
var lib_dir = get_clang_lib_dir();
37353735

37363736
if (!!cflags_name) {
3737-
ADD_FLAG(cflags_name, "-fsanitize=address,undefined");
3737+
ADD_FLAG(cflags_name, "-fsanitize=address,undefined -fno-sanitize=function");
37383738
}
37393739
if (!!libs_name) {
37403740
if (TARGET_ARCH == 'x64') {

0 commit comments

Comments
 (0)