serenity/Meta/Lagom/Fuzzers/FuzzRegexECMA262.cpp

18 lines
422 B
C++
Raw Normal View History

2020-11-28 17:48:01 +00:00
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
2020-11-28 17:48:01 +00:00
*/
#include <AK/StringView.h>
#include <LibRegex/Regex.h>
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
auto pattern = StringView(static_cast<const unsigned char*>(data), size);
[[maybe_unused]] auto re = Regex<ECMA262>(pattern);
2020-11-28 17:48:01 +00:00
return 0;
}