summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bson_validate_fuzzer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bson_validate_fuzzer.cpp')
-rw-r--r--src/mongo/bson/bson_validate_fuzzer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/bson/bson_validate_fuzzer.cpp b/src/mongo/bson/bson_validate_fuzzer.cpp
index 081354218b1..e25de0564da 100644
--- a/src/mongo/bson/bson_validate_fuzzer.cpp
+++ b/src/mongo/bson/bson_validate_fuzzer.cpp
@@ -26,13 +26,15 @@
* exception statement from all source files in the program, then also delete
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
#include "mongo/bson/bson_validate.h"
#include "mongo/bson/bson_validate_old.h"
#include "mongo/logv2/log.h"
#include "mongo/util/hex.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
+
+
extern "C" int LLVMFuzzerTestOneInput(const char* Data, size_t Size) {
using namespace mongo;
// The fuzzerOnly version is an older, slower implementation with less precise error messages.