aboutsummaryrefslogtreecommitdiff
path: root/fuzz
AgeCommit message (Collapse)AuthorFilesLines
2020-07-26test/fuzz: add @ dump command to print data structureMarc André Tanner1-0/+8
2020-07-26test/fuzz: add % command to print data structure memory informationMarc André Tanner1-0/+12
2020-07-25Add basic text benchmarking infrastructureMarc André Tanner1-0/+128
This adds a new bench command to the interactive shell initially used for fuzzing with AFL. The syntax is: > b op pos [count] where op is either: i (insert) d (delete) r (replace) m (set/get mark) and pos is one of: ^ (start) | (middle) $ (end) % (random) - (consecutively from end to start) + (consecutively from start to end) ~ (stripes with fixed distance) Hence the following would perform 100 insertions at random positions: > b i % 100 Note however, that the used pseudo-random number generator is currently not seeded, meaning multiple execution will start with the same state, making them comparable. Timing is currently performed using monotonic clock_gettime(2).
2020-05-30test/fuzz: simplify MakefileMarc André Tanner1-2/+4
2020-05-14test/fuzz: add libfuzzer target for text data structureMarc André Tanner5-6/+37
This reuses the existing fuzzing driver initially written for afl-fuzz. As a consequence, quite a bit of stdio code is involved which is probably not optimal.
2020-05-14test/fuzz: fix compilation by adapting to newer APIMarc André Tanner1-2/+2
2020-05-14test/fuzz: add missing CFLAGSMarc André Tanner1-2/+2
2017-02-20test/fuzz: add fuzzing driver for bufferMarc André Tanner5-2/+142
2017-02-20test/fuzz: add fuzzing infrastructureMarc André Tanner7-0/+260
For now we use the american fuzzy lop in the future we might also add libFuzzer support.