|
Ada 4.1.1
Fast spec-compliant URL parser
|
#include <fuzzer/FuzzedDataProvider.h>#include <cstdio>#include <string>#include <string_view>#include "ada.cpp"#include "ada.h"Go to the source code of this file.
Functions | |
| template<size_t N> | |
| static const char * | pick (FuzzedDataProvider &fdp, const char *const (&arr)[N]) |
| static std::string | make_candidate (FuzzedDataProvider &fdp) |
| static void | check_href_size (const ada::url &u, std::string_view input) |
| static void | check_href_size (const ada::url_aggregator &u, std::string_view input) |
| template<class Result> | |
| static void | check_reparse_idempotent (const Result &parsed, std::string_view input) |
| static void | check_components_agree (const ada::url &u, const ada::url_aggregator &a, std::string_view input) |
| static void | fuzz_one_input (std::string_view input) |
| int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
Variables | |
| static constexpr const char * | kSchemes [] |
| static constexpr const char * | kHosts [] |
| static constexpr const char * | kPaths [] |
| static constexpr const char * | kQueries [] |
| static constexpr const char * | kFrags [] |
|
static |
Definition at line 146 of file simple_absolute.cc.
References ada::url::get_hash(), ada::url_aggregator::get_hash(), ada::url::get_host(), ada::url_aggregator::get_host(), ada::url::get_hostname(), ada::url_aggregator::get_hostname(), ada::url::get_href(), ada::url_aggregator::get_href(), ada::url::get_password(), ada::url_aggregator::get_password(), ada::url::get_pathname(), ada::url_aggregator::get_pathname(), ada::url::get_port(), ada::url_aggregator::get_port(), ada::url::get_protocol(), ada::url_aggregator::get_protocol(), ada::url::get_search(), ada::url_aggregator::get_search(), ada::url::get_username(), and ada::url_aggregator::get_username().
Referenced by fuzz_one_input().
|
static |
Definition at line 94 of file simple_absolute.cc.
References ada::url::get_href(), and ada::url::get_href_size().
Referenced by fuzz_one_input().
|
static |
Definition at line 107 of file simple_absolute.cc.
References ada::url_aggregator::get_href(), and ada::url_aggregator::get_href_size().
|
static |
Definition at line 122 of file simple_absolute.cc.
References ada::parse().
Referenced by fuzz_one_input().
|
static |
Definition at line 171 of file simple_absolute.cc.
References check_components_agree(), check_href_size(), check_reparse_idempotent(), and ada::parse().
Referenced by LLVMFuzzerTestOneInput().
| int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
| size_t | size ) |
Definition at line 212 of file simple_absolute.cc.
References fuzz_one_input(), and make_candidate().
|
static |
Definition at line 74 of file simple_absolute.cc.
References kFrags, kHosts, kPaths, kQueries, kSchemes, and pick().
Referenced by LLVMFuzzerTestOneInput().
|
static |
Definition at line 70 of file simple_absolute.cc.
References N.
Referenced by make_candidate(), and TEST_F().
|
staticconstexpr |
Definition at line 65 of file simple_absolute.cc.
Referenced by make_candidate(), and make_simple_absolute_candidate().
|
staticconstexpr |
Definition at line 14 of file simple_absolute.cc.
Referenced by make_candidate(), make_simple_absolute_candidate(), and make_url_candidate().
|
staticconstexpr |
Definition at line 37 of file simple_absolute.cc.
Referenced by make_candidate(), and make_simple_absolute_candidate().
|
staticconstexpr |
Definition at line 56 of file simple_absolute.cc.
Referenced by make_candidate(), and make_simple_absolute_candidate().
|
staticconstexpr |
Definition at line 10 of file simple_absolute.cc.
Referenced by make_candidate(), make_simple_absolute_candidate(), and make_url_candidate().