Support fuzz testing (#4)

Quickstart (requires Clang 6 or later):

$ export LIB_FUZZING_ENGINE=/path/to/fuzzing/library.a
$ ./configure --enable-fuzz-testing
$ make
$ cd src/fuzz
$ make fuzz_mdb
$ ./fuzz_mdb

Also add a new `mdb_open_buffer function` to facilitate in-memory
fuzz-testing. This requires fmemopen, which may not be present on all
systems. The internal API has been reworked to use file streams instead
of file descriptors. This allows reading from memory and reading from
files using a consistent API.
This commit is contained in:
Evan Miller
2020-08-31 13:03:58 -04:00
committed by GitHub
parent 8b40423f65
commit be888e0dd7
12 changed files with 194 additions and 89 deletions

View File

@@ -23,6 +23,7 @@ Intended focus areas of this fork:
- [ ] Security / stability / fuzz testing
- [x] Thread safety\*
- [x] In-memory database API
- [x] Removing GLib dependency
- [x] Improved ODBC compliance
- [x] Continuous integration with Travis and AppVeyor