Use libonig5 - this will enable mbstring regex limits (#2282)

This commit is contained in:
Stanislav Malyshev 2019-04-01 12:29:42 -07:00 committed by jonathanmetzman
parent b858b0036d
commit 795aa42757
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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 \

2
projects/php/cosmic.list Normal file
View File

@ -0,0 +1,2 @@
deb http://archive.ubuntu.com/ubuntu/ cosmic universe