Integration for Radare2 (#1237)

* Integration for Radare2

* Remove rss_limit_mb since it does not work.
This commit is contained in:
zlowram 2018-08-05 10:04:23 -07:00 committed by Abhishek Arya
parent d2d9860ecd
commit 6fadb3b717
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,9 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER zlowram@gmail.com
RUN apt-get update
RUN git clone https://github.com/radare/radare2 radare2
RUN git clone https://github.com/radare/radare2-regressions radare2-regressions
WORKDIR radare2
COPY build.sh $SRC/
COPY *.options $SRC/

24
projects/radare2/build.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash -eu
export USERCC=$CC
export HOST_CC=$CC
sys/static.sh
cp -r r2-static $OUT/
cp -r ../radare2-regressions/fuzz/targets .
export RADARE2_STATIC_BUILD=$OUT/r2-static
cd targets
make
for target in $(ls *.cc); do
fuzzer=$(echo $target | cut -d'.' -f1)
cp $fuzzer $OUT
cp $SRC/default.options $OUT/$fuzzer.options
done
for seed in $(ls corpora); do
zip -j corpora/$seed.zip corpora/$seed/*
cp corpora/$seed.zip $OUT
done

View File

@ -0,0 +1,3 @@
[libfuzzer]
close_fd_mask=3
detect_leaks=0