Fossil

Diff
Login

Differences From Artifact [b4c5791b17]:

To Artifact [fcd8470380]:


11
12
13
14
15
16
17
18


19
20


21
22
23
24

25
26
27
28
29
30
31



32
33
34
35
36
37
38
11
12
13
14
15
16
17

18
19
20

21
22
23
24
25

26
27
28
29
30
31
32

33
34
35
36
37
38
39
40
41
42







-
+
+

-
+
+



-
+






-
+
+
+







**
** Author contact information:
**   drh@hwaci.com
**   http://www.hwaci.com/drh/
**
*******************************************************************************
**
** This file contains code to connect Fossil to libFuzzer.
** This file contains code to connect Fossil to libFuzzer.  Do a web search
** for "libfuzzer" for details about that fuzzing platform.
**
** To build on linux (the only platform for which this works) first do
** To build on linux (the only platform for which this works at
** present) first do
**
**     ./configure
**
** The edit the Makefile as follows:
** Then edit the Makefile as follows:
**
**   (1)  Change CC to be "clang-6.0" or some other compiler that
**        supports libFuzzer
**
**   (2)  Chagne APPNAME to "fossil-fuzz"
**
**   (3)  Add "-fsanitize=fuzzer" and "-DFOSSIL_FUZZ" to TCCFLAGS
**   (3)  Add "-fsanitize=fuzzer" and "-DFOSSIL_FUZZ" to TCCFLAGS.  Perhaps
**        make the first change "-fsanitize=fuzzer,undefined,address" for
**        extra, but slower, testing.
**
** Then build the fuzzer using:
**
**   make clean fossil-fuzz
**
** To run the fuzzer, create a working directory ("cases"):
**