|
Ada 4.1.1
Fast spec-compliant URL parser
|
#include <fuzzer/FuzzedDataProvider.h>#include <cstdio>#include <cstdlib>#include <optional>#include <string>#include <vector>#include "ada.cpp"#include "ada.h"Go to the source code of this file.
Classes | |
| struct | reference_route |
Typedefs | |
| using | list_type = ada::url_pattern_list<regex_provider> |
| using | groups_type = std::vector<std::optional<std::string>> |
Functions | |
| static bool | build_reference (const std::vector< std::string > &patterns, const ada::url_pattern_options &options, std::vector< reference_route > &out) |
| static int32_t | reference_match (const std::vector< reference_route > &routes, std::string_view pathname, groups_type &groups) |
| static void | exercise_match_result (const ada::url_pattern_list_match_result &result) |
| static void | fail (const char *what, const std::string &input, const std::vector< std::string > &patterns) |
| static void | check_agreement (const list_type &list, const std::vector< reference_route > &reference, const std::vector< std::string > &patterns, const std::string &input) |
| int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
| using groups_type = std::vector<std::optional<std::string>> |
Definition at line 18 of file url_pattern_list.cc.
| using list_type = ada::url_pattern_list<regex_provider> |
Definition at line 16 of file url_pattern_list.cc.
|
static |
Definition at line 32 of file url_pattern_list.cc.
References reference_route::info, and reference_route::pattern.
Referenced by LLVMFuzzerTestOneInput().
|
static |
Definition at line 115 of file url_pattern_list.cc.
References exercise_match_result(), fail(), reference_route::info, and reference_match().
Referenced by LLVMFuzzerTestOneInput().
|
static |
Definition at line 88 of file url_pattern_list.cc.
Referenced by check_agreement().
|
static |
Definition at line 106 of file url_pattern_list.cc.
Referenced by check_agreement().
| int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
| size_t | size ) |
Definition at line 171 of file url_pattern_list.cc.
References build_reference(), and check_agreement().
|
static |
Definition at line 66 of file url_pattern_list.cc.
References reference_route::info, and reference_route::pattern.
Referenced by check_agreement().