Skip to content

Commit 418d243

Browse files
committed
Change instructions to use oniguruma from git
Some bugs are already fixed there. [ci skip]
1 parent 2aefd11 commit 418d243

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

sapi/fuzzer/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,15 @@ sapi/fuzzer/php-fuzz-parser -only_ascii=1 ./my-parser-corpus
5252
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.
5353

5454
```sh
55-
mkdir libonig
56-
pushd libonig
57-
wget -O - https://github.com/kkos/oniguruma/releases/download/v6.9.3/onig-6.9.3.tar.gz \
58-
| tar -xz --strip-components=1
55+
git clone https://github.com/kkos/oniguruma.git
56+
pushd oniguruma
57+
autoreconf -vfi
5958
./configure CC=clang CFLAGS="-fsanitize=fuzzer-no-link,address -O2 -g"
6059
make
6160
popd
6261

63-
export ONIG_CFLAGS="-I$PWD/libonig/src"
64-
export ONIG_LIBS="-L$PWD/libonig/src/.libs -l:libonig.a"
62+
export ONIG_CFLAGS="-I$PWD/oniguruma/src"
63+
export ONIG_LIBS="-L$PWD/oniguruma/src/.libs -l:libonig.a"
6564
```
6665

6766
This will link an instrumented libonig statically into the PHP binary.

0 commit comments

Comments
 (0)