mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
Fuzzing: initialize siphash key, don't init_logging twice.
This commit is contained in:
parent
0666928c5c
commit
ca657074b9
3
.gitignore
vendored
3
.gitignore
vendored
@ -196,6 +196,9 @@ uptime-*.json
|
||||
/src/test/test-timers.exe
|
||||
/src/test/test_workqueue.exe
|
||||
|
||||
# /src/test/fuzz
|
||||
/src/test/fuzz/fuzz-*
|
||||
|
||||
# /src/tools/
|
||||
/src/tools/tor-checkkey
|
||||
/src/tools/tor-resolve
|
||||
|
@ -104,7 +104,10 @@ main(int argc, char **argv)
|
||||
size_t size;
|
||||
|
||||
tor_threads_init();
|
||||
init_logging(1);
|
||||
{
|
||||
struct sipkey sipkey = { 1337, 7331 };
|
||||
siphash_set_global_key(&sipkey);
|
||||
}
|
||||
|
||||
/* Disable logging by default to speed up fuzzing. */
|
||||
int loglevel = LOG_ERR;
|
||||
|
Loading…
Reference in New Issue
Block a user