diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-10 10:00:26 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-12 11:07:08 -0500 |
commit | 845e8dbe5904b4b2d3eb2db9e2681ea2f4d98008 (patch) | |
tree | 02a9c6e20f9241a440a0bac92692297cf183f231 /scripts | |
parent | f0a8664677b8e4a3503172d6e7564da33496be8f (diff) | |
download | tor-845e8dbe5904b4b2d3eb2db9e2681ea2f4d98008.tar.gz tor-845e8dbe5904b4b2d3eb2db9e2681ea2f4d98008.zip |
Fuzzing module for various string operations, currently focusing on
encoding and decoding.
There are bunches of places where we don't want to invest in a full
fuzzer, but we would like to make sure that some string operation
can handle all its possible inputs. This fuzzer uses the first byte
of its input to decide what to do with the rest of the input. Right
now, all the possibilities are decoding a string, and seeing whether
it is decodeable. If it is, we try to re-encode it and do the whole
thing again, to make sure we get the same result.
This turned up a lot of bugs in the key-value parser, and I think it
will help in other cases too.
Closes ticket 28808.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/codegen/fuzzing_include_am.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/codegen/fuzzing_include_am.py b/scripts/codegen/fuzzing_include_am.py index 3c948d87cf..5b51158843 100755 --- a/scripts/codegen/fuzzing_include_am.py +++ b/scripts/codegen/fuzzing_include_am.py @@ -13,6 +13,7 @@ FUZZERS = """ iptsv2 microdesc socks + strops vrs """ |