mirror of https://github.com/google/oss-fuzz.git
Use libonig5 - this will enable mbstring regex limits (#2282)
This commit is contained in:
parent
b858b0036d
commit
795aa42757
|
@ -18,7 +18,9 @@ FROM gcr.io/oss-fuzz-base/base-builder
|
|||
MAINTAINER stas@php.net
|
||||
RUN apt-get update && apt-get install -y make autoconf automake libtool bison re2c make ca-certificates curl \
|
||||
xz-utils dpkg-dev file libc-dev pkg-config libcurl4-openssl-dev libedit-dev libsqlite3-dev libssl-dev \
|
||||
zlib1g-dev libonig-dev chrpath
|
||||
zlib1g-dev chrpath
|
||||
ADD cosmic.list /etc/apt/sources.list.d/cosmic.list
|
||||
RUN apt-get update && apt-get install -y libonig5 libonig-dev
|
||||
RUN git clone --depth 1 --branch master https://github.com/php/php-src.git php-src
|
||||
RUN git clone --depth 1 https://github.com/php/php-fuzzing-sapi.git php-src/sapi/fuzzer
|
||||
WORKDIR php-src
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
mkdir -p $OUT/lib/
|
||||
cp sapi/fuzzer/json.dict $OUT/php-fuzz-json.dict
|
||||
cp /usr/lib/x86_64-linux-gnu/libonig.so.2 $OUT/lib/
|
||||
cp /usr/lib/x86_64-linux-gnu/libonig.so.5 $OUT/lib/
|
||||
# build project
|
||||
./buildconf
|
||||
./configure --enable-fuzzer --enable-option-checking=fatal --disable-libxml --disable-dom \
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
deb http://archive.ubuntu.com/ubuntu/ cosmic universe
|
||||
|
Loading…
Reference in New Issue