Ada 2.9.0
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
idna.cc
Go to the documentation of this file.
1#include <fuzzer/FuzzedDataProvider.h>
2
3#include <memory>
4#include <string>
5
6#include "ada.cpp"
7#include "ada.h"
8
9extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
10 FuzzedDataProvider fdp(data, size);
11 std::string source = fdp.ConsumeRandomLengthString(256);
12 std::string base_source = fdp.ConsumeRandomLengthString(256);
13
17 ada::idna::to_ascii(source);
19 ada::idna::ascii_has_upper_case(source.data(), source.length());
20
21 return 0;
22}
Includes all definitions for Ada.
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
Definition idna.cc:9
std::string to_ascii(std::string_view ut8_string)
std::string to_unicode(std::string_view input)
bool ascii_has_upper_case(char *input, size_t length)