Files
FTXUI/src/ftxui/component/terminal_input_parser_test_fuzzer.cpp

17 lines
552 B
C++
Raw Normal View History

2023-08-19 13:56:36 +02:00
// Copyright 2021 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include <cstddef>
#include <ftxui/component/event.hpp>
2021-06-21 23:08:39 +02:00
#include "ftxui/component/terminal_input_parser.hpp"
extern "C" int LLVMFuzzerTestOneInput(const char* data, size_t size) {
using namespace ftxui;
auto parser = TerminalInputParser([&](Event) {});
for (size_t i = 0; i < size; ++i) {
parser.Add(data[i]);
}
return 0; // Non-zero return values are reserved for future use.
}