initial commit
This commit is contained in:
commit
5ee928ab34
2 changed files with 24 additions and 0 deletions
13
part1/oss-fuzz.diff
Normal file
13
part1/oss-fuzz.diff
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/projects/libpng/Dockerfile b/projects/libpng/Dockerfile
|
||||
index 6f281cd55..aecae58ac 100644
|
||||
--- a/projects/libpng/Dockerfile
|
||||
+++ b/projects/libpng/Dockerfile
|
||||
@@ -19,6 +19,7 @@ RUN apt-get update && \
|
||||
apt-get install -y make autoconf automake libtool zlib1g-dev
|
||||
|
||||
RUN git clone --depth 1 https://github.com/madler/zlib.git
|
||||
-RUN git clone --depth 1 https://github.com/pnggroup/libpng.git
|
||||
+RUN git clone --depth 1 --branch v1.6.48 https://github.com/pnggroup/libpng.git
|
||||
RUN cp libpng/contrib/oss-fuzz/build.sh $SRC
|
||||
+RUN sed -i 's/libpng_read_fuzzer_seed_corpus\.zip/libpng_read_fuzzer_seed_corpus.zip.disabled/g' $SRC/build.sh
|
||||
WORKDIR libpng
|
||||
11
part1/run.w_corpus.sh
Executable file
11
part1/run.w_corpus.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
COMMIT_HASH="d3114168fca525b0539f80e17ab21bc1b99afb6d"
|
||||
|
||||
git clone https://github.com/SekoiaTree/oss-fuzz.git oss-fuzz-w
|
||||
cd oss-fuzz-w
|
||||
git checkout $COMMIT_HASH
|
||||
python3 infra/helper.py build_image --pull libpng
|
||||
python3 infra/helper.py build_fuzzers --clean libpng
|
||||
|
||||
mkdir -p build/out/corpus
|
||||
python3 infra/helper.py run_fuzzer libpng libpng_read_fuzzer --corpus-dir build/out/corpus
|
||||
Loading…
Add table
Reference in a new issue