/src/botan/src/fuzzer/uri.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * (C) 2019 Nuno Goncalves <nunojpg@gmail.com> |
3 | | * |
4 | | * Botan is released under the Simplified BSD License (see license.txt) |
5 | | */ |
6 | | |
7 | | #include "fuzzers.h" |
8 | | #include <botan/internal/uri.h> |
9 | | |
10 | | void fuzz(const uint8_t in[], size_t len) |
11 | 6.25k | { |
12 | 6.25k | if(len > max_fuzzer_input_size) |
13 | 0 | return; |
14 | | |
15 | 6.25k | try |
16 | 6.25k | { |
17 | 6.25k | Botan::URI::fromAny(std::string(reinterpret_cast<const char*>(in), len)); |
18 | 6.25k | } |
19 | 6.25k | catch(Botan::Exception& e) { } |
20 | 6.25k | } |