Skip to content

Commit 7dbfacb

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/build/confutils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3739,7 +3739,7 @@ function add_asan_opts(cflags_name, libs_name, ldflags_name)
37393739
var lib_dir = get_clang_lib_dir();
37403740

37413741
if (!!cflags_name) {
3742-
ADD_FLAG(cflags_name, "-fsanitize=address,undefined");
3742+
ADD_FLAG(cflags_name, "-fsanitize=address,undefined -fno-sanitize=function");
37433743
}
37443744
if (!!libs_name) {
37453745
if (TARGET_ARCH == 'x64') {

0 commit comments

Comments
 (0)