Skip to content

Commit 5a9638e

Browse files
committed
infra: add support for custom LSAN_OPTIONS values
Closes #9453
1 parent 3beb664 commit 5a9638e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

infra/base-images/base-runner/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ RUN git clone https://chromium.googlesource.com/chromium/src/tools/code_coverage
5555
# shouldn't be changed unless a corresponding change is made on
5656
# ClusterFuzz side as well.
5757
ENV ASAN_OPTIONS="alloc_dealloc_mismatch=0:allocator_may_return_null=1:allocator_release_to_os_interval_ms=500:check_malloc_usable_size=0:detect_container_overflow=1:detect_odr_violation=0:detect_leaks=1:detect_stack_use_after_return=1:fast_unwind_on_fatal=0:handle_abort=1:handle_segv=1:handle_sigill=1:max_uar_stack_size_log=16:print_scariness=1:quarantine_size_mb=10:strict_memcmp=1:strip_path_prefix=/workspace/:symbolize=1:use_sigaltstack=1:dedup_token_length=3"
58+
ENV LSAN_OPTIONS="max_leaks=0"
5859
ENV MSAN_OPTIONS="print_stats=1:strip_path_prefix=/workspace/:symbolize=1:dedup_token_length=3"
5960
ENV UBSAN_OPTIONS="print_stacktrace=1:print_summary=1:silence_unsigned_overflow=1:strip_path_prefix=/workspace/:symbolize=1:dedup_token_length=3"
6061
ENV FUZZER_ARGS="-rss_limit_mb=2560 -timeout=25"

infra/base-images/base-runner/run_fuzzer

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ if [ -f $OPTIONS_FILE ]; then
105105
export ASAN_OPTIONS="$ASAN_OPTIONS:$custom_asan_options"
106106
fi
107107

108+
custom_lsan_options=$(parse_options.py $OPTIONS_FILE lsan)
109+
if [ ! -z $custom_lsan_options ]; then
110+
export LSAN_OPTIONS="$LSAN_OPTIONS:$custom_lsan_options"
111+
fi
112+
108113
custom_msan_options=$(parse_options.py $OPTIONS_FILE msan)
109114
if [ ! -z $custom_msan_options ]; then
110115
export MSAN_OPTIONS="$MSAN_OPTIONS:$custom_msan_options"

0 commit comments

Comments
 (0)