2020-11-28 17:48:01 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* 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>
|
|
|
|
|
2022-04-01 20:58:27 +03:00
|
|
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
2020-11-28 17:48:01 +00:00
|
|
|
{
|
2022-04-01 20:58:27 +03:00
|
|
|
auto pattern = StringView(static_cast<unsigned char const*>(data), size);
|
2020-12-20 16:09:48 -07:00
|
|
|
[[maybe_unused]] auto re = Regex<ECMA262>(pattern);
|
2020-11-28 17:48:01 +00:00
|
|
|
return 0;
|
|
|
|
}
|