diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-30 18:15:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-01 00:04:58 -0500 |
commit | fec3b3bb9389d9d9f927c370d560fc50ec65c93b (patch) | |
tree | 9b8ad08341e8663156592087ab276420edb5e26a /src/test/fuzz | |
parent | 6785aa4010c141ab8792e41745acc2267ce46ca4 (diff) | |
download | tor-fec3b3bb9389d9d9f927c370d560fc50ec65c93b.tar.gz tor-fec3b3bb9389d9d9f927c370d560fc50ec65c93b.zip |
Extract logic for dumping unparseable junk from routerparse.c
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/fuzz_consensus.c | 1 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_descriptor.c | 1 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_extrainfo.c | 1 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_hsdescv2.c | 1 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_hsdescv3.c | 1 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_iptsv2.c | 1 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_microdesc.c | 1 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_vrs.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/src/test/fuzz/fuzz_consensus.c b/src/test/fuzz/fuzz_consensus.c index c368b58d04..1b3f019865 100644 --- a/src/test/fuzz/fuzz_consensus.c +++ b/src/test/fuzz/fuzz_consensus.c @@ -3,6 +3,7 @@ #define ROUTERPARSE_PRIVATE #include "core/or/or.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "feature/nodelist/networkstatus.h" #include "lib/crypt_ops/crypto_ed25519.h" #include "feature/nodelist/networkstatus_st.h" diff --git a/src/test/fuzz/fuzz_descriptor.c b/src/test/fuzz/fuzz_descriptor.c index f7d4a7911a..8087e16391 100644 --- a/src/test/fuzz/fuzz_descriptor.c +++ b/src/test/fuzz/fuzz_descriptor.c @@ -3,6 +3,7 @@ #define ROUTERPARSE_PRIVATE #include "core/or/or.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "feature/nodelist/routerlist.h" #include "feature/nodelist/torcert.h" #include "feature/keymgt/loadkey.h" diff --git a/src/test/fuzz/fuzz_extrainfo.c b/src/test/fuzz/fuzz_extrainfo.c index 56fd6b7592..3ec2baf1e9 100644 --- a/src/test/fuzz/fuzz_extrainfo.c +++ b/src/test/fuzz/fuzz_extrainfo.c @@ -3,6 +3,7 @@ #define ROUTERPARSE_PRIVATE #include "core/or/or.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "feature/nodelist/routerlist.h" #include "feature/relay/routerkeys.h" #include "test/fuzz/fuzzing.h" diff --git a/src/test/fuzz/fuzz_hsdescv2.c b/src/test/fuzz/fuzz_hsdescv2.c index ebab5c6ce0..1963114ca7 100644 --- a/src/test/fuzz/fuzz_hsdescv2.c +++ b/src/test/fuzz/fuzz_hsdescv2.c @@ -3,6 +3,7 @@ #define ROUTERPARSE_PRIVATE #include "core/or/or.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "feature/rend/rendcommon.h" #include "lib/crypt_ops/crypto_ed25519.h" #include "test/fuzz/fuzzing.h" diff --git a/src/test/fuzz/fuzz_hsdescv3.c b/src/test/fuzz/fuzz_hsdescv3.c index 4d630bf9bd..ce6dfb177a 100644 --- a/src/test/fuzz/fuzz_hsdescv3.c +++ b/src/test/fuzz/fuzz_hsdescv3.c @@ -9,6 +9,7 @@ #include "lib/crypt_ops/crypto_ed25519.h" #include "feature/hs/hs_descriptor.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "test/fuzz/fuzzing.h" diff --git a/src/test/fuzz/fuzz_iptsv2.c b/src/test/fuzz/fuzz_iptsv2.c index 6fdfec3c9f..c2147c8bae 100644 --- a/src/test/fuzz/fuzz_iptsv2.c +++ b/src/test/fuzz/fuzz_iptsv2.c @@ -3,6 +3,7 @@ #define ROUTERPARSE_PRIVATE #include "core/or/or.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "feature/rend/rendcommon.h" #include "lib/crypt_ops/crypto_ed25519.h" diff --git a/src/test/fuzz/fuzz_microdesc.c b/src/test/fuzz/fuzz_microdesc.c index 15e8b004c9..789e522af6 100644 --- a/src/test/fuzz/fuzz_microdesc.c +++ b/src/test/fuzz/fuzz_microdesc.c @@ -3,6 +3,7 @@ #define ROUTERPARSE_PRIVATE #include "core/or/or.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "feature/nodelist/microdesc.h" #include "lib/crypt_ops/crypto_ed25519.h" diff --git a/src/test/fuzz/fuzz_vrs.c b/src/test/fuzz/fuzz_vrs.c index 6b22077ae6..8fb6e6ef24 100644 --- a/src/test/fuzz/fuzz_vrs.c +++ b/src/test/fuzz/fuzz_vrs.c @@ -4,6 +4,7 @@ #define NETWORKSTATUS_PRIVATE #include "core/or/or.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/unparseable.h" #include "lib/memarea/memarea.h" #include "feature/nodelist/microdesc.h" #include "feature/nodelist/networkstatus.h" |