Update TopicTree.cpp

This commit is contained in:
Alex Hultman
2021-08-29 11:57:18 +02:00
committed by GitHub
parent 9d700c43a8
commit c8d088de18
+3
View File
@@ -38,6 +38,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (size > 4) {
/* Last of all is a string */
std::string_view lastString((char *) data + 5, size - 5);
/* Why not */
topicTree.lookupTopic(lastString);
/* First 4 bytes is the subscriber id */
uint32_t id;