Line | Count | Source |
1 | #include <fuzzer/FuzzedDataProvider.h> | |
2 | ||
3 | #include <memory> | |
4 | #include <string> | |
5 | ||
6 | #include "ada.cpp" | |
7 | #include "ada.h" | |
8 | ||
9 | 8.62k | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
10 | 8.62k | FuzzedDataProvider fdp(data, size); |
11 | 8.62k | std::string source = fdp.ConsumeRandomLengthString(256); |
12 | ||
13 | /** | |
14 | * ada::idna | |
15 | */ | |
16 | 8.62k | ada::idna::to_ascii(source); |
17 | 8.62k | ada::idna::to_unicode(source); |
18 | ||
19 | 8.62k | return 0; |
20 | 8.62k | } |