From 3d7dc183d1c28b00e1270b9fdfa8361bc1f8fbff Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Thu, 6 Aug 2020 15:38:53 -0700 Subject: [PATCH] [mp4parse-rust] Limit allocation size (#4273) * [mp4parse-rust] Set max_allocation_size_mb * [mp4parse-rust] Update CC list --- projects/mp4parse-rust/Dockerfile | 2 +- projects/mp4parse-rust/build.sh | 1 + projects/mp4parse-rust/default.options | 2 ++ projects/mp4parse-rust/project.yaml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 projects/mp4parse-rust/default.options diff --git a/projects/mp4parse-rust/Dockerfile b/projects/mp4parse-rust/Dockerfile index 3c0c0ac48..3732a3733 100644 --- a/projects/mp4parse-rust/Dockerfile +++ b/projects/mp4parse-rust/Dockerfile @@ -20,4 +20,4 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool curl cma RUN git clone --depth 1 https://github.com/mozilla/mp4parse-rust mp4parse-rust WORKDIR mp4parse-rust -COPY build.sh $SRC/ +COPY build.sh default.options $SRC/ diff --git a/projects/mp4parse-rust/build.sh b/projects/mp4parse-rust/build.sh index 860a7ac43..d07f29a4a 100755 --- a/projects/mp4parse-rust/build.sh +++ b/projects/mp4parse-rust/build.sh @@ -29,5 +29,6 @@ do FUZZ_TARGET_NAME=$(basename ${f%.*}) cp $FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME $OUT/ cp $PROJECT_DIR/mp4parse_capi/fuzz/mp4.dict $OUT/$FUZZ_TARGET_NAME.dict + cp $SRC/default.options $OUT/$FUZZ_TARGET_NAME.options zip -jr $OUT/${FUZZ_TARGET_NAME}_seed_corpus.zip $PROJECT_DIR/corpus/ done diff --git a/projects/mp4parse-rust/default.options b/projects/mp4parse-rust/default.options new file mode 100644 index 000000000..84c33f64f --- /dev/null +++ b/projects/mp4parse-rust/default.options @@ -0,0 +1,2 @@ +[asan] +max_allocation_size_mb=512 diff --git a/projects/mp4parse-rust/project.yaml b/projects/mp4parse-rust/project.yaml index 8948c4e6a..a28ecd263 100644 --- a/projects/mp4parse-rust/project.yaml +++ b/projects/mp4parse-rust/project.yaml @@ -6,4 +6,5 @@ fuzzing_engines: - libfuzzer language: rust vendor_ccs: +- "jbauman@mozilla.com" - "twsmith@mozilla.com"