File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -496,9 +496,15 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_LEAK_SANITIZER],
496
496
#
497
497
AC_DEFUN_ONCE ( [ JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER] ,
498
498
[
499
+ UTIL_ARG_WITH(NAME: additional-ubsan-checks, TYPE: string,
500
+ DEFAULT: [ ] ,
501
+ DESC: [ Customizes the ubsan checks] ,
502
+ OPTIONAL: true)
503
+
499
504
# GCC reports lots of likely false positives for stringop-truncation and format-overflow.
500
505
# Silence them for now.
501
- UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment"
506
+ UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment \
507
+ $ADDITIONAL_UBSAN_CHECKS"
502
508
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
503
509
UBSAN_LDFLAGS="$UBSAN_CHECKS"
504
510
UTIL_ARG_ENABLE(NAME: ubsan, DEFAULT: false, RESULT: UBSAN_ENABLED,
You can’t perform that action at this time.
0 commit comments