Enable UBSan builtin, null, returns-nonnull-attribute, and unreachable checks. (#3062)

This commit is contained in:
mbarbella-chromium 2019-11-24 17:44:53 -08:00 committed by Abhishek Arya
parent 4985ddfcfe
commit 48f8d5edc4
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ RUN go get github.com/dvyukov/go-fuzz/go-fuzz-build
ENV SANITIZER_FLAGS_address "-fsanitize=address -fsanitize-address-use-after-scope"
# Set of '-fsanitize' flags matches '-fno-sanitize-recover' + 'unsigned-integer-overflow'.
ENV SANITIZER_FLAGS_undefined "-fsanitize=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,unsigned-integer-overflow,vla-bound,vptr -fno-sanitize-recover=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr"
ENV SANITIZER_FLAGS_undefined "-fsanitize=array-bounds,bool,builtin,float-divide-by-zero,function,integer-divide-by-zero,null,return,returns-nonnull-attribute,shift,signed-integer-overflow,unsigned-integer-overflow,unreachable,vla-bound,vptr -fno-sanitize-recover=array-bounds,bool,builtin,float-divide-by-zero,function,integer-divide-by-zero,null,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr"
ENV SANITIZER_FLAGS_memory "-fsanitize=memory -fsanitize-memory-track-origins"