summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-18 14:11:36 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-18 14:56:25 +0200
commit418d243e37acaf7b3e1f55bffa90275a91343d31 (patch)
treeda2c1a2f49eee89216020a0c1380dd770b6fc1e6
parent2aefd112114bd150f5dbba0be6d0f8601561da4e (diff)
downloadphp-git-418d243e37acaf7b3e1f55bffa90275a91343d31.tar.gz
Change instructions to use oniguruma from git
Some bugs are already fixed there. [ci skip]
-rw-r--r--sapi/fuzzer/README.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/sapi/fuzzer/README.md b/sapi/fuzzer/README.md
index 166be746ea..c753c23c30 100644
--- a/sapi/fuzzer/README.md
+++ b/sapi/fuzzer/README.md
@@ -52,16 +52,15 @@ sapi/fuzzer/php-fuzz-parser -only_ascii=1 ./my-parser-corpus
For the mbstring fuzzer, you may want to build the libonig dependency with instrumentation. At this time, libonig is not clean under ubsan, so only the fuzzer and address sanitizers may be used.
```sh
-mkdir libonig
-pushd libonig
-wget -O - https://github.com/kkos/oniguruma/releases/download/v6.9.3/onig-6.9.3.tar.gz \
- | tar -xz --strip-components=1
+git clone https://github.com/kkos/oniguruma.git
+pushd oniguruma
+autoreconf -vfi
./configure CC=clang CFLAGS="-fsanitize=fuzzer-no-link,address -O2 -g"
make
popd
-export ONIG_CFLAGS="-I$PWD/libonig/src"
-export ONIG_LIBS="-L$PWD/libonig/src/.libs -l:libonig.a"
+export ONIG_CFLAGS="-I$PWD/oniguruma/src"
+export ONIG_LIBS="-L$PWD/oniguruma/src/.libs -l:libonig.a"
```
This will link an instrumented libonig statically into the PHP binary.