mirror of https://github.com/google/oss-fuzz.git
parent
8b01f03d4b
commit
8f4bec7ec6
|
@ -24,11 +24,16 @@ RUN apt-get update && \
|
||||||
gawk \
|
gawk \
|
||||||
libstdc++6 \
|
libstdc++6 \
|
||||||
m4 \
|
m4 \
|
||||||
python
|
python python3-pip python3-setuptools python3-wheel cmake git nasm
|
||||||
|
RUN pip3 install meson ninja
|
||||||
|
|
||||||
# This wrapper of cargo seems to interfere with our build system.
|
# This wrapper of cargo seems to interfere with our build system.
|
||||||
RUN rm -f /usr/local/bin/cargo
|
RUN rm -f /usr/local/bin/cargo
|
||||||
|
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $SRC/rustbuild.sh && \
|
||||||
|
chmod +x $SRC/rustbuild.sh && \
|
||||||
|
$SRC/rustbuild.sh -y
|
||||||
|
|
||||||
RUN git clone --depth 1 https://github.com/mozilla/gecko-dev mozilla-central
|
RUN git clone --depth 1 https://github.com/mozilla/gecko-dev mozilla-central
|
||||||
RUN git clone --depth 1 https://github.com/mozillasecurity/fuzzdata
|
RUN git clone --depth 1 https://github.com/mozillasecurity/fuzzdata
|
||||||
WORKDIR mozilla-central
|
WORKDIR mozilla-central
|
||||||
|
|
|
@ -15,6 +15,14 @@
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
if [ "$SANITIZER" = "coverage" ]
|
||||||
|
then
|
||||||
|
touch $OUT/exit
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
source $HOME/.cargo/env
|
||||||
|
|
||||||
# Case-sensitive names of internal Firefox fuzzing targets. Edit to add more.
|
# Case-sensitive names of internal Firefox fuzzing targets. Edit to add more.
|
||||||
FUZZ_TARGETS=(
|
FUZZ_TARGETS=(
|
||||||
# WebRTC
|
# WebRTC
|
||||||
|
@ -48,14 +56,7 @@ export ASAN_OPTIONS="detect_leaks=0"
|
||||||
# Install remaining dependencies.
|
# Install remaining dependencies.
|
||||||
export SHELL=/bin/bash
|
export SHELL=/bin/bash
|
||||||
|
|
||||||
# Firefox might not be buildable on the latest Rust Nightly, so we should try
|
rustup default nightly
|
||||||
# to use the same version that we use in our CI.
|
|
||||||
RUST_NIGHTLY_VERSION=$(sed -n 's/^.*--channel.*\(nightly-[0-9-]*\).*$/\1/p' \
|
|
||||||
$SRC/mozilla-central/taskcluster/ci/toolchain/rust.yml
|
|
||||||
)
|
|
||||||
|
|
||||||
rustup toolchain install ${RUST_NIGHTLY_VERSION}
|
|
||||||
rustup default ${RUST_NIGHTLY_VERSION}-x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
./mach --no-interactive bootstrap --application-choice browser
|
./mach --no-interactive bootstrap --application-choice browser
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ ac_add_options --disable-debug
|
||||||
ac_add_options --disable-elf-hack
|
ac_add_options --disable-elf-hack
|
||||||
ac_add_options --disable-jemalloc
|
ac_add_options --disable-jemalloc
|
||||||
ac_add_options --disable-crashreporter
|
ac_add_options --disable-crashreporter
|
||||||
ac_add_options --disable-av1
|
|
||||||
ac_add_options --enable-fuzzing
|
ac_add_options --enable-fuzzing
|
||||||
ac_add_options --enable-optimize=-O1
|
ac_add_options --enable-optimize=-O1
|
||||||
ac_add_options --enable-debug-symbols=-gline-tables-only
|
ac_add_options --enable-debug-symbols=-gline-tables-only
|
||||||
|
|
Loading…
Reference in New Issue