From a4d192453acf9e4126a244463b4fe024e09224c4 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Mon, 8 Jun 2020 15:17:05 +0200 Subject: [PATCH] Fix TopicTree fuzz build --- fuzzing/TopicTree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzzing/TopicTree.cpp b/fuzzing/TopicTree.cpp index 577e238..cc4af7b 100644 --- a/fuzzing/TopicTree.cpp +++ b/fuzzing/TopicTree.cpp @@ -9,9 +9,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { /* Create topic tree */ - uWS::TopicTree topicTree([](uWS::Subscriber *s, std::string_view message) { + uWS::TopicTree topicTree([](uWS::Subscriber *s, std::pair message) { /* We assume sane output */ - if (!s || !message.length()) { + if (!s || !message.first.length()) { free((void *) -1); }