Skip to content

Commit 86f90cc

Browse files
committed
infra: Suppress unsigned integer overflow crashes
Keep `unsigned-integer-overflow` instrumentation to use it as a coverage signal, but silence the error reports with this ubsan option. Taken from OSS-Fuzz.
1 parent b01bc98 commit 86f90cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infra/Dockerfile.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ENV MSAN_SYMBOLIZER_PATH="/usr/bin/llvm-symbolizer"
163163

164164
RUN touch ubsan_suppressions
165165
ENV ASAN_OPTIONS="strict_string_checks=1:detect_invalid_pointer_pairs=2:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:abort_on_error=1:exitcode=75"
166-
ENV UBSAN_OPTIONS="suppressions=/workdir/ubsan_suppressions:print_stacktrace=1:halt_on_error=1:abort_on_error=1:report_error_type=1:exitcode=76"
166+
ENV UBSAN_OPTIONS="suppressions=/workdir/ubsan_suppressions:print_stacktrace=1:halt_on_error=1:abort_on_error=1:report_error_type=1:silence_unsigned_overflow=1:exitcode=76"
167167

168168
# Enable env_logger by default with level info
169169
ENV RUST_LOG=trace

0 commit comments

Comments
 (0)