mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Suppress UB warnings regarding indirect function calls
Like for POSIX systems, we pass `-fno-sanitize=function`. Closes GH-17462.
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user