Fix TopicTree fuzz build

This commit is contained in:
Alex Hultman
2020-06-08 15:17:05 +02:00
committed by GitHub
parent 025415d1a0
commit a4d192453a
+2 -2
View File
@@ -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<std::string_view, std::string_view> message) {
/* We assume sane output */
if (!s || !message.length()) {
if (!s || !message.first.length()) {
free((void *) -1);
}