@@ -0,0 +1,19 @@
// SPDX-FileCopyrightText: 2024 Robin Lindén <dev@robinlinden.eu>
//
// SPDX-License-Identifier: BSD-2-Clause
#include "wasm/byte_code_parser.h"
#include <sstream>
#include <stddef.h> // NOLINT
#include <stdint.h> // NOLINT
#include <string>
#include <tuple>
extern "C" int LLVMFuzzerTestOneInput(uint8_t const *data, size_t size); // NOLINT
extern "C" int LLVMFuzzerTestOneInput(uint8_t const *data, size_t size) {
std::ignore = wasm::ByteCodeParser::parse_module(
std::stringstream{std::string{reinterpret_cast<char const *>(data), size}});
return 0;
}