From af631e453428f6c79522e97a7957df114517d9b8 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Fri, 29 Jan 2021 13:17:56 +0100 Subject: [PATCH] Update topicTree fuzzing --- fuzzing/TopicTree.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fuzzing/TopicTree.cpp b/fuzzing/TopicTree.cpp index 8bc1897..24a91d1 100644 --- a/fuzzing/TopicTree.cpp +++ b/fuzzing/TopicTree.cpp @@ -9,7 +9,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { /* Create topic tree */ - uWS::TopicTree topicTree([](uWS::Subscriber *s, std::pair message) { + uWS::TopicTree topicTree([](uWS::Subscriber *s, uWS::Intersection &intersection) { + + /* For now we do not care about iterating over holes! TODO! */ + std::pair message = intersection.dataChannels; /* Subscriber must not be null, and at this point we have to have subscriptions. * This assumption seems to hold true. */