tree: 1c65539fe6f666e9a61167854a6ee004c740dc23 [path history] [tgz]
  1. quic_framer_fuzzer.cc
  2. README.md
quic/test_tools/fuzzing/README.md

Examples of fuzz testing QUIC code using libfuzzer (go/libfuzzer).

To build and run the examples:

$ blaze build --config=asan-fuzzer //gfe/quic/test_tools/fuzzing/...
$ CORPUS_DIR=`mktemp -d` && echo ${CORPUS_DIR}
$ ./blaze-bin/gfe/quic/test_tools/fuzzing/quic_framer_fuzzer ${CORPUS_DIR} -use_counters=0

By default this fuzzes with 64 byte chunks, to test the framer with more realistic size input, try 1350 (max payload size of a QUIC packet):

$ ./blaze-bin/gfe/quic/test_tools/fuzzing/quic_framer_fuzzer ${CORPUS_DIR} -use_counters=0 -max_len=1350