Skip to content
Snippets Groups Projects
Commit 5dce134f authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Initialize the mock options in the fuzzing code

Fixes bug 24082; bugfix on 0.3.0.3-alpha.  Found by Brian Carpenter.
parent 5bee5fba
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes (testing):
- Fix a spurious fuzzing-only use of an uninitialized value.
Found by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha.
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment