examples: apache2-readme
@@ -12,7 +12,7 @@ Note that those examples use hardcoded paths (here to _/home/swiecki/_) and
version of the libraries (e.g. apr-1.5.2). You nedd to modify them, so they reflect your actual build environment.
1. Compile honggfuzz
-2. Prepare the following packages: apr, apr-util and ngttp2
+2. Prepare (configure and compile) the following packages: apr, apr-util and ngttp2
* Apr
```
$ CC=clang-4.0 CFLAGS="-ggdb -fno-builtin -fno-inline -funroll-loops -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp" LDFLAGS="$CFLAGS" ./configure
@@ -20,12 +20,12 @@ version of the libraries (e.g. apr-1.5.2). You nedd to modify them, so they refl
```
* Apr-Util
```
- $ CC=clang-4.0 CFLAGS="-ggdb -fno-inline -fno-builtin -fsanitize-coverage=trace-cmp,trace-pc-guard,indirect-calls" LDFLAGS="$CFLAGS" ./configure -with-apr=/home/swiecki/fuzz/apache/apr-1.5.2/
+ $ CC=clang-4.0 CFLAGS="-ggdb -fno-builtin -fno-inline -funroll-loops -fsanitize-coverage=trace-cmp,trace-pc-guard,indirect-calls" LDFLAGS="$CFLAGS" ./configure -with-apr=/home/swiecki/fuzz/apache/apr-1.5.2/
$ make
```
* NgHttp2
```
- CXX=clang++-4.0 CC=clang-4.0 LDFLAGS="$LIBS" CFLAGS="-ggdb -fno-builtin -fno-inline -fsanitize-coverage=trace-cmp,trace-pc-guard,indirect-calls" CXXFLAGS="$CFLAGS" ./configure
+ CXX=clang++-4.0 CC=clang-4.0 LDFLAGS="$LIBS" CFLAGS="-ggdb -fno-builtin -fno-inline -funroll-loops -fsanitize-coverage=trace-cmp,trace-pc-guard,indirect-calls" CXXFLAGS="$CFLAGS" ./configure
```
3. Unpack apache-2.4.x.tgz
4. Patch Apache
@@ -41,7 +41,13 @@ version of the libraries (e.g. apr-1.5.2). You nedd to modify them, so they refl
$ $ sh compile.sh
$ make -j4
```
-6. Fuzz it
+6. Copy custom configuration files to /home/swiecki/fuzz/apache/apache2/conf/
+
+ ```
+ cp httpd.conf.h1 httpd.conf.h2 /home/swiecki/fuzz/apache/apache2/conf/
+ ```
+7. Fuzz it
+
* HTTP/1
```
$ ~/honggfuzz/honggfuzz -z -P -f corpus_http1 -w ./httpd.wordlist -- ./apache2/bin/httpd -X -f /home/swiecki/fuzz/apache/apache2/conf/httpd.conf.h1
