diff --git a/infra/base-images/base-builder/Dockerfile b/infra/base-images/base-builder/Dockerfile index ee2bb280e..60c84cbee 100644 --- a/infra/base-images/base-builder/Dockerfile +++ b/infra/base-images/base-builder/Dockerfile @@ -74,6 +74,7 @@ RUN curl -L https://github.com/bazelbuild/bazelisk/releases/download/v$BAZELISK_ # Default build flags for various sanitizers. ENV SANITIZER_FLAGS_address "-fsanitize=address -fsanitize-address-use-after-scope" +ENV SANITIZER_FLAGS_hwaddress "-fsanitize=hwaddress -fuse-ld=lld -Wno-unused-command-line-argument" # Set of '-fsanitize' flags matches '-fno-sanitize-recover' + 'unsigned-integer-overflow'. ENV SANITIZER_FLAGS_undefined "-fsanitize=array-bounds,bool,builtin,enum,float-divide-by-zero,function,integer-divide-by-zero,null,object-size,return,returns-nonnull-attribute,shift,signed-integer-overflow,unsigned-integer-overflow,unreachable,vla-bound,vptr -fno-sanitize-recover=array-bounds,bool,builtin,enum,float-divide-by-zero,function,integer-divide-by-zero,null,object-size,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr" diff --git a/infra/constants.py b/infra/constants.py index 3b9abf216..3309fb4ba 100644 --- a/infra/constants.py +++ b/infra/constants.py @@ -34,8 +34,14 @@ LANGUAGES_WITH_COVERAGE_SUPPORT = [ 'c', 'c++', 'go', 'jvm', 'python', 'rust', 'swift' ] SANITIZERS = [ - 'address', 'none', 'memory', 'undefined', 'thread', 'coverage', - 'introspector' + 'address', + 'none', + 'memory', + 'undefined', + 'thread', + 'coverage', + 'introspector', + 'hwaddress', ] ARCHITECTURES = ['i386', 'x86_64', 'aarch64'] ENGINES = ['libfuzzer', 'afl', 'honggfuzz', 'none', 'wycheproof']