Meta: Use URL basic parse for URL Fuzzer

This commit is contained in:
Shannon Booth 2025-02-22 22:16:42 +13:00 committed by Tim Flynn
commit 1a47cfe3b9
Notes: github-actions[bot] 2025-03-04 21:25:59 +00:00

View file

@ -4,12 +4,13 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <LibURL/URL.h> #include <LibURL/Parser.h>
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size) extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{ {
AK::set_debug_enabled(false); AK::set_debug_enabled(false);
auto string_view = StringView(data, size); auto string_view = StringView(data, size);
auto url = URL::URL(string_view); auto url = URL::Parser::basic_parse(string_view);
(void)url;
return 0; return 0;
} }