2016-11-18 22:53:09 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-03-22 19:12:51 +00:00
|
|
|
FROM gcr.io/oss-fuzz-base/base-image
|
2016-11-18 22:53:09 +00:00
|
|
|
MAINTAINER mike.aizatsky@gmail.com
|
2018-06-14 22:00:46 +00:00
|
|
|
RUN apt-get install -y zip file libunwind8 binutils libblocksruntime0 \
|
2018-07-09 07:21:55 +00:00
|
|
|
fonts-dejavu python3 libcap2
|
2018-06-14 22:00:46 +00:00
|
|
|
COPY bad_build_check coverage llvm-cov llvm-profdata llvm-symbolizer reproduce \
|
2018-07-27 04:59:02 +00:00
|
|
|
run_fuzzer sancov test_all minijail0 run_minijail targets_list /usr/local/bin/
|
2016-12-13 19:07:48 +00:00
|
|
|
|
|
|
|
# Default environment options for various sanitizers.
|
|
|
|
# Note that these match the settings used in ClusterFuzz and
|
|
|
|
# shouldn't be changed unless a corresponding change is made on
|
|
|
|
# ClusterFuzz side as well.
|
2017-01-05 04:16:13 +00:00
|
|
|
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:strict_string_check=1:strip_path_prefix=/workspace/:symbolize=1:use_sigaltstack=1"
|
2016-12-13 19:07:48 +00:00
|
|
|
ENV MSAN_OPTIONS="print_stats=1:strip_path_prefix=/workspace/:symbolize=1"
|
2018-08-07 17:04:25 +00:00
|
|
|
ENV UBSAN_OPTIONS="print_stacktrace=1:print_summary=1:silence_unsigned_overflow=1:strip_path_prefix=/workspace/:symbolize=1"
|
2017-01-03 18:47:05 +00:00
|
|
|
ENV FUZZER_ARGS="-rss_limit_mb=2048 -timeout=25"
|
2017-02-22 20:05:29 +00:00
|
|
|
ENV AFL_FUZZER_ARGS="-m none"
|