aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-02-02 17:42:23 -0500
committerNick Mathewson <nickm@torproject.org>2018-02-02 17:42:23 -0500
commit953c769a867415f81dc016f30575dee6c0b2cb43 (patch)
tree87064297052c808b4e0c4beb945234f731eff4dc /src/test/fuzz
parenteafa252b26ecf83a8a48e7e19a3315e1d2983186 (diff)
downloadtor-953c769a867415f81dc016f30575dee6c0b2cb43.tar.gz
tor-953c769a867415f81dc016f30575dee6c0b2cb43.zip
fuzz: Move init_protocol_warning_severity_level() into global_init()
This is needed so llvm_fuzz will see it too.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/fuzzing_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/fuzz/fuzzing_common.c b/src/test/fuzz/fuzzing_common.c
index 7c9fac748b..a96552f0fc 100644
--- a/src/test/fuzz/fuzzing_common.c
+++ b/src/test/fuzz/fuzzing_common.c
@@ -110,6 +110,9 @@ global_init(void)
/* Make BUG() and nonfatal asserts crash */
tor_set_failed_assertion_callback(abort);
+
+ /* Make protocol warnings handled correctly. */
+ init_protocol_warning_severity_level();
}
#ifdef LLVM_FUZZ
@@ -152,8 +155,6 @@ main(int argc, char **argv)
}
}
- init_protocol_warning_severity_level();
-
{
log_severity_list_t s;
memset(&s, 0, sizeof(s));