aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/fuzzing_common.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-14 17:11:26 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-30 08:37:24 -0500
commit301eff0e90a727005d364ebc2e9a7ffaecd0a3ef (patch)
treefe2c7f67b3827b807b09c0fc92b8e73141474f37 /src/test/fuzz/fuzzing_common.c
parent4afb155db2d9aaafe8dd1517e9619e6bd9c95751 (diff)
downloadtor-301eff0e90a727005d364ebc2e9a7ffaecd0a3ef.tar.gz
tor-301eff0e90a727005d364ebc2e9a7ffaecd0a3ef.zip
fuzzing: Add copyright notices and whitespace fixes
Diffstat (limited to 'src/test/fuzz/fuzzing_common.c')
-rw-r--r--src/test/fuzz/fuzzing_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/fuzz/fuzzing_common.c b/src/test/fuzz/fuzzing_common.c
index 54a792353d..57c3cf52cf 100644
--- a/src/test/fuzz/fuzzing_common.c
+++ b/src/test/fuzz/fuzzing_common.c
@@ -1,3 +1,5 @@
+/* Copyright (c) 2016, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
#define CRYPTO_ED25519_PRIVATE
#include "orconfig.h"
#include "or.h"
@@ -78,7 +80,6 @@ mock_ed25519_impl_spot_check__nocheck(void)
return 0;
}
-
void
disable_signature_checking(void)
{
@@ -93,7 +94,8 @@ disable_signature_checking(void)
#ifdef LLVM_FUZZ
int
-LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
+LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
+{
static int initialized = 0;
if (!initialized) {
if (fuzz_init() < 0)