Skip to content

Commit ea3afcb

Browse files
committed
Enable UBSan in addition to ASan
UBSan is a useful tool, so we enable it for `--enable-sanitizer` in addition to ASan.
1 parent 4130fe4 commit ea3afcb

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
@@ -3706,7 +3706,7 @@ function add_asan_opts(cflags_name, libs_name, ldflags_name)
37063706
}
37073707

37083708
if (!!cflags_name) {
3709-
ADD_FLAG(cflags_name, "-fsanitize=address");
3709+
ADD_FLAG(cflags_name, "-fsanitize=address,undefined");
37103710
}
37113711
if (!!libs_name) {
37123712
if (X64) {

0 commit comments

Comments
 (0)