Merge pull request #309 from hannob/ubsan_abort

Make sure UBSAN errors cause a hard abort.
This commit is contained in:
Sebastian Pipping 2019-08-15 22:29:15 +02:00 committed by GitHub
commit 4fff5a7097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ populate_environment() {
# http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
BASE_COMPILE_FLAGS+=" -fsanitize=undefined"
BASE_LINK_FLAGS+=" -fsanitize=undefined"
export UBSAN_OPTIONS=print_stacktrace=1
export UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1:abort_on_error=1"
;;
esac
fi