Ada 3.0.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
url_pattern.cc File Reference
#include <fuzzer/FuzzedDataProvider.h>
#include <memory>
#include <string>
#include "ada.cpp"
#include "ada.h"

Go to the source code of this file.

Typedefs

using regex_provider = ada::url_pattern_regex::std_regex_provider
 

Functions

std::string bytesToAlphanumeric (const std::string &source)
 
int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 

Typedef Documentation

◆ regex_provider

using regex_provider = ada::url_pattern_regex::std_regex_provider

Definition at line 9 of file url_pattern.cc.

Function Documentation

◆ bytesToAlphanumeric()

std::string bytesToAlphanumeric ( const std::string & source)

Definition at line 11 of file url_pattern.cc.

Referenced by LLVMFuzzerTestOneInput().

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t * data,
size_t size )

Definition at line 28 of file url_pattern.cc.

References bytesToAlphanumeric(), and ada::parse_url_pattern().