Skip to content

Commit a93ce58

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Enable UBSan in addition to ASan
2 parents 046dcfb + ea3afcb commit a93ce58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

win32/build/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ if (CLANG_TOOLSET) {
327327
"-Wno-unused-command-line-argument -Wno-unused-function -Wno-ignored-pragma-optimize");
328328
}
329329

330-
ARG_ENABLE("sanitizer", "Enable address sanitizer extension", "no");
330+
ARG_ENABLE("sanitizer", "Enable ASan and UBSan extensions", "no");
331331
if (PHP_SANITIZER == "yes") {
332332
if (COMPILER_NUMERIC_VERSION < 500) {
333333
ERROR("Clang at least 5.0.0 required for sanitation plugins");

win32/build/confutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3692,7 +3692,7 @@ function add_asan_opts(cflags_name, libs_name, ldflags_name)
36923692
}
36933693

36943694
if (!!cflags_name) {
3695-
ADD_FLAG(cflags_name, "-fsanitize=address");
3695+
ADD_FLAG(cflags_name, "-fsanitize=address,undefined");
36963696
}
36973697
if (!!libs_name) {
36983698
if (X64) {

0 commit comments

Comments
 (0)