2020-11-29 20:52:19 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-11-29 20:52:19 -03:00
|
|
|
*/
|
|
|
|
|
|
2025-02-22 06:16:42 -03:00
|
|
|
#include <LibURL/Parser.h>
|
2020-11-29 20:52:19 -03:00
|
|
|
|
2022-04-01 14:58:27 -03:00
|
|
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
2020-11-29 20:52:19 -03:00
|
|
|
{
|
2023-11-03 14:49:54 -03:00
|
|
|
AK::set_debug_enabled(false);
|
2020-11-29 20:52:19 -03:00
|
|
|
auto string_view = StringView(data, size);
|
2025-02-22 06:16:42 -03:00
|
|
|
auto url = URL::Parser::basic_parse(string_view);
|
|
|
|
|
(void)url;
|
2020-11-29 20:52:19 -03:00
|
|
|
return 0;
|
|
|
|
|
}
|