diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-30 17:05:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-30 17:05:26 -0400 |
commit | 5dce134fbb4310704c6e9dcffca61221671d6e47 (patch) | |
tree | f372c0d6f33c073201006f0596f8e7f37e2e2208 /src/test/fuzz | |
parent | 5bee5fbac71f3534b8e1a19c742c2a61f686ca9d (diff) | |
download | tor-5dce134fbb4310704c6e9dcffca61221671d6e47.tar.gz tor-5dce134fbb4310704c6e9dcffca61221671d6e47.zip |
Initialize the mock options in the fuzzing code
Fixes bug 24082; bugfix on 0.3.0.3-alpha. Found by Brian Carpenter.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/fuzzing_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/fuzzing_common.c b/src/test/fuzz/fuzzing_common.c index 7aee92df63..7ebddde1a8 100644 --- a/src/test/fuzz/fuzzing_common.c +++ b/src/test/fuzz/fuzzing_common.c @@ -107,7 +107,7 @@ global_init(void) configure_backtrace_handler(get_version()); /* set up the options. */ - mock_options = tor_malloc(sizeof(or_options_t)); + mock_options = tor_malloc_zero(sizeof(or_options_t)); MOCK(get_options, mock_get_options); /* Make BUG() and nonfatal asserts crash */ |