mirror of https://github.com/google/oss-fuzz.git
Integration for Radare2 (#1237)
* Integration for Radare2 * Remove rss_limit_mb since it does not work.
This commit is contained in:
parent
d2d9860ecd
commit
6fadb3b717
|
@ -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/
|
||||
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
[libfuzzer]
|
||||
close_fd_mask=3
|
||||
detect_leaks=0
|
Loading…
Reference in New Issue