Fossil SCM
Improved comments on the fuzz.c module. No code changes.
Commit
898d5b6de7436f62075478dbf4ea3c90534d853070371c6344140bc58c8ca27f
Parent
3a7129211cc8557…
1 file changed
+8
-4
+8
-4
| --- src/fuzz.c | ||
| +++ src/fuzz.c | ||
| @@ -13,24 +13,28 @@ | ||
| 13 | 13 | ** [email protected] |
| 14 | 14 | ** http://www.hwaci.com/drh/ |
| 15 | 15 | ** |
| 16 | 16 | ******************************************************************************* |
| 17 | 17 | ** |
| 18 | -** This file contains code to connect Fossil to libFuzzer. | |
| 18 | +** This file contains code to connect Fossil to libFuzzer. Do a web search | |
| 19 | +** for "libfuzzer" for details about that fuzzing platform. | |
| 19 | 20 | ** |
| 20 | -** To build on linux (the only platform for which this works) first do | |
| 21 | +** To build on linux (the only platform for which this works at | |
| 22 | +** present) first do | |
| 21 | 23 | ** |
| 22 | 24 | ** ./configure |
| 23 | 25 | ** |
| 24 | -** The edit the Makefile as follows: | |
| 26 | +** Then edit the Makefile as follows: | |
| 25 | 27 | ** |
| 26 | 28 | ** (1) Change CC to be "clang-6.0" or some other compiler that |
| 27 | 29 | ** supports libFuzzer |
| 28 | 30 | ** |
| 29 | 31 | ** (2) Chagne APPNAME to "fossil-fuzz" |
| 30 | 32 | ** |
| 31 | -** (3) Add "-fsanitize=fuzzer" and "-DFOSSIL_FUZZ" to TCCFLAGS | |
| 33 | +** (3) Add "-fsanitize=fuzzer" and "-DFOSSIL_FUZZ" to TCCFLAGS. Perhaps | |
| 34 | +** make the first change "-fsanitize=fuzzer,undefined,address" for | |
| 35 | +** extra, but slower, testing. | |
| 32 | 36 | ** |
| 33 | 37 | ** Then build the fuzzer using: |
| 34 | 38 | ** |
| 35 | 39 | ** make clean fossil-fuzz |
| 36 | 40 | ** |
| 37 | 41 |
| --- src/fuzz.c | |
| +++ src/fuzz.c | |
| @@ -13,24 +13,28 @@ | |
| 13 | ** [email protected] |
| 14 | ** http://www.hwaci.com/drh/ |
| 15 | ** |
| 16 | ******************************************************************************* |
| 17 | ** |
| 18 | ** This file contains code to connect Fossil to libFuzzer. |
| 19 | ** |
| 20 | ** To build on linux (the only platform for which this works) first do |
| 21 | ** |
| 22 | ** ./configure |
| 23 | ** |
| 24 | ** The edit the Makefile as follows: |
| 25 | ** |
| 26 | ** (1) Change CC to be "clang-6.0" or some other compiler that |
| 27 | ** supports libFuzzer |
| 28 | ** |
| 29 | ** (2) Chagne APPNAME to "fossil-fuzz" |
| 30 | ** |
| 31 | ** (3) Add "-fsanitize=fuzzer" and "-DFOSSIL_FUZZ" to TCCFLAGS |
| 32 | ** |
| 33 | ** Then build the fuzzer using: |
| 34 | ** |
| 35 | ** make clean fossil-fuzz |
| 36 | ** |
| 37 |
| --- src/fuzz.c | |
| +++ src/fuzz.c | |
| @@ -13,24 +13,28 @@ | |
| 13 | ** [email protected] |
| 14 | ** http://www.hwaci.com/drh/ |
| 15 | ** |
| 16 | ******************************************************************************* |
| 17 | ** |
| 18 | ** This file contains code to connect Fossil to libFuzzer. Do a web search |
| 19 | ** for "libfuzzer" for details about that fuzzing platform. |
| 20 | ** |
| 21 | ** To build on linux (the only platform for which this works at |
| 22 | ** present) first do |
| 23 | ** |
| 24 | ** ./configure |
| 25 | ** |
| 26 | ** Then edit the Makefile as follows: |
| 27 | ** |
| 28 | ** (1) Change CC to be "clang-6.0" or some other compiler that |
| 29 | ** supports libFuzzer |
| 30 | ** |
| 31 | ** (2) Chagne APPNAME to "fossil-fuzz" |
| 32 | ** |
| 33 | ** (3) Add "-fsanitize=fuzzer" and "-DFOSSIL_FUZZ" to TCCFLAGS. Perhaps |
| 34 | ** make the first change "-fsanitize=fuzzer,undefined,address" for |
| 35 | ** extra, but slower, testing. |
| 36 | ** |
| 37 | ** Then build the fuzzer using: |
| 38 | ** |
| 39 | ** make clean fossil-fuzz |
| 40 | ** |
| 41 |