Commit graph

8 commits

Author SHA1 Message Date
Jon Siwek
05f829c727 Merge remote-tracking branch 'origin/topic/jazoff/fuzz-size-limit-speedup'
- Factored check into more descriptive function: ExceedsChunkLimit()

* origin/topic/jazoff/fuzz-size-limit-speedup:
  Speed up ChunkCount validity check
2020-05-21 11:43:34 -07:00
Justin Azoff
6aa6eea7bc Speed up ChunkCount validity check
When counting chunks for the purpose of a Valid check, only count up to
chunk_count_limit + 1 chunks.  This speeds up the skipping of the 70,000
chunk test file considerably.

Before:
    Processed 1 inputs in 0.025517s

After:
    Processed 1 inputs in 0.000620s
2020-05-21 12:55:00 -04:00
Jon Siwek
ce6459ed6f Merge remote-tracking branch 'origin/topic/jazoff/fuzz-size-limits'
- I rolled the fuzz chunk limit check into FuzzBuffer::Valid()

* origin/topic/jazoff/fuzz-size-limits:
  Skip fuzz inputs that have more than 64 chunks
2020-05-20 10:56:17 -07:00
Justin Azoff
1e4374bd27 Skip fuzz inputs that have more than 64 chunks 2020-05-20 10:02:40 -04:00
Jon Siwek
2d0b8c0b8e Use zeek::detail namespace for fuzzer utils 2020-05-04 17:37:11 -07:00
Jon Siwek
2922bf71b6 Improve FuzzBuffer chunking
Now allocates a new buffer for each chunk to better detect over-reads
2020-04-27 16:33:05 -07:00
Jon Siwek
0623539d80 Adjust minor fuzzing documentation 2020-04-27 15:53:32 -07:00
Jon Siwek
8f1b34b915 Add basic structure for fuzzing targets
General changes:

* Add -D/--deterministic command line option as
  convenience/alternative to -G/--load-seeds (i.e. no file needed, it just
  uses zero-initialized random seeds).  It also changes Broker data
  stores over to using deterministic timing rather than real time.

* Add option to make Reporter abort on runtime scripting errors
2020-04-23 12:51:25 -07:00