summaryrefslogtreecommitdiff
path: root/crates/tor-bytes/fuzz
Commit message (Collapse)AuthorAgeFilesLines
* tor-bytes: Add a Reader constructor for use in testsIan Jackson2024-09-111-1/+1
| | | | | | | | | | | | We could call from_possibly_incomplete_slice in these, but that's confusing and distracting. Here we add this constructor, and document it (in terms of the constructor to come), and change the call sites. No functional change. Doing this now will prevent unwanted changes to test behaviours when we change the behaviour of Readers made by Reader::from_slice.
* Change tor_bytes::Readable name to `b` in many placesIan Jackson2024-09-111-28/+28
| | | | | | | | | | | | | | | The codebase uses `r` sometimes and `b` at other times. Making this consistent makes widespread changes easier, and is clearer for humans. I think `b` is better than `r` because `r` might be "return". It is indeed used that way in a couple of places in reader.rs, even. I haven't changed *everywhere*, just Readable impls (where `r` is particularly likely to be "return value") and occurrences in tor-bytes. No functional change.
* tor-bytes: Add take_rest and read_nested_* to fuzzer.Nick Mathewson2023-03-061-0/+25
|
* Do not .gitignore crates/*/fuzz/corpusIan Jackson2023-01-201-1/+0
| | | | | These are symlinks which are actually checked in. They should not be ignored. (This caused trouble for some of my privsep tooling...)
* set all crate edition to 2021trinity-1686a2022-11-011-1/+1
|
* Upgrade all fuzzers to newer libfuzzer-sys version.Nick Mathewson2022-10-031-1/+1
|
* Exclude tor-bytes fuzzing helper code from tarpaulin coverage.Nick Mathewson2021-09-071-2/+2
|
* Update corpus and links.Nick Mathewson2021-09-071-1/+1
|
* Fix bugs in last fuzzer code.Nick Mathewson2021-09-071-2/+3
|
* Improvements to array-of-u8 handling in tor-bytes.Nick Mathewson2021-09-071-20/+53
| | | | | | | | | | | | Now that we have const generics, we can use them. We can also avoid an extra clone in the implementation for [u8; N]. Nothing in our codebase requires that we use Reader or Writer on a GenericArray holding anything other than u8, so I've switched back to the more efficient implementation there. I've added a fuzzer case for the new method, but apparently rustc nightly isn't working too well with fuzzers for me; I'm going to try it tomorrow.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-274-0/+106
This will cause some pain for now, but now is really the best time to do this kind of thing.