summaryrefslogtreecommitdiff
path: root/src/test/fuzz/fuzzing_common.c
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-09-30Re-run "make autostyle" with improved annotate_ifdef_directivesNick Mathewson
2019-09-25test: Use SEVERITY_MASK_IDX() to find the LOG_* mask indexesteor
In the unit tests and fuzzers. Fixes bug 31334; bugfix on 0.2.5.2-alpha.
2019-08-28Refactor config free logic to use a single path.Nick Mathewson
The right way to free a config object is now to wrap config_free(), always. Instead of creating an alternative free function, objects should provide an alternative clear callback to free any fields that the configuration manager doesn't manage. This lets us simplify our code a little, and lets us extend the confparse.c code to manage additional fields in config_free.
2019-07-24Use config_new() to construct configuration objects.Nick Mathewson
We'll need to do it this way once the objects become more complex.
2019-06-05Run "make autostyle."Nick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-11-05Use subsystems manager for subsystems used in tests.Nick Mathewson
2018-11-05Move the code that knows our tor version into a lowest-level libNick Mathewson
2018-07-13Make nss get initialized before we fuzz anything.Nick Mathewson
2018-07-11Rename crypto.c to crypto_cipher.c (since that's all it still has.)Nick Mathewson
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-07-01Remove needless includes from or.hNick Mathewson
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
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.