aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/fuzzing_common.c
AgeCommit message (Collapse)Author
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-02-02fuzz: Move init_protocol_warning_severity_level() into global_init()Nick Mathewson
This is needed so llvm_fuzz will see it too.
2018-01-31Use thread-safe types to store the LOG_PROTOCOL_WARN severityNick Mathewson
Fixes a race condition; resolves 23954.
2017-11-11Merge branch 'bug24247_032'Nick Mathewson
2017-11-11Fix mock_crypto_pk_public_checksig__nocheck() to handle short RSA keysNick Mathewson
This function -- a mock replacement used only for fuzzing -- would have a buffer overflow if it got an RSA key whose modulus was under 20 bytes long. Fortunately, Tor itself does not appear to have a bug here. Fixes bug 24247; bugfix on 0.3.0.3-alpha when fuzzing was introduced. Found by OSS-Fuzz; this is OSS-Fuzz issue 4177.
2017-11-01Merge branch 'tor_api_squashed'Nick Mathewson
2017-10-30Initialize the mock options in the fuzzing codeNick Mathewson
Fixes bug 24082; bugfix on 0.3.0.3-alpha. Found by Brian Carpenter.
2017-10-18Move tor_git_revision into a new module.Nick Mathewson
At first, we put the tor_git_revision constant in tor_main.c, so that we wouldn't have to recompile config.o every time the git revision changed. But putting it there had unintended side effect of forcing every program that wanted to link libor.a (including test, test-slow, the fuzzers, the benchmarks, etc) to declare their own tor_git_revision instance. That's not very nice, especially since we want to start supporting others who want to link against Tor (see 23846). So, create a new git_revision.c file that only contains this constant, and remove the duplicated boilerplate from everywhere else. Part of implementing ticket 23845.
2017-04-25Use atomic counters for compressor allocation.Nick Mathewson
2017-03-15Run the copyright update script.Nick Mathewson
2017-01-30Add libfuzzer support.Nick Mathewson
2017-01-30fuzzing: Add copyright notices and whitespace fixesNick Mathewson
2017-01-30Add more tweaks from teor's http fuzzing code.Nick Mathewson
Move option-manipulation code to fuzzing_common.
2017-01-30Fuzzing: initialize siphash key, don't init_logging twice.Nick Mathewson
2017-01-30Replace signature-checking and digest-checking while fuzzingNick Mathewson
2016-12-19Port fuzz_http to use fuzzing_common.Nick Mathewson
Move common logic from fuzz_http to fuzzing_common.
2016-12-19Fuzzing: Add an initial fuzzing tool, for descriptors.Nick Mathewson
This will need some refactoring and mocking.