mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
Meta: Use URL basic parse for URL Fuzzer
This commit is contained in:
parent
3fb9c37783
commit
1a47cfe3b9
Notes:
github-actions[bot]
2025-03-04 21:25:59 +00:00
Author: https://github.com/shannonbooth
Commit: 1a47cfe3b9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3668
Reviewed-by: https://github.com/trflynn89
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue