diff options
author | Jack Lloyd <[email protected]> | 2019-10-16 09:38:25 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-10-16 09:38:25 -0400 |
commit | 5261274ea193f64deb27e88ed57d0830d8815913 (patch) | |
tree | 3921b8376c11dd4d04f4bce82a8c08236bfa6af4 /src/fuzzer/uri.cpp | |
parent | 26354d668b6b1c27aa40ea2dd13ff0dffe09134d (diff) | |
parent | 760419ef719721fd8ee8d7d8bb77d27bd66801fa (diff) |
Merge GH #2143 Add Roughtime
Diffstat (limited to 'src/fuzzer/uri.cpp')
-rw-r--r-- | src/fuzzer/uri.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/fuzzer/uri.cpp b/src/fuzzer/uri.cpp new file mode 100644 index 000000000..89066d283 --- /dev/null +++ b/src/fuzzer/uri.cpp @@ -0,0 +1,20 @@ +/* +* (C) 2019 Nuno Goncalves <[email protected]> +* +* Botan is released under the Simplified BSD License (see license.txt) +*/ + +#include "fuzzers.h" +#include <botan/internal/uri.h> + +void fuzz(const uint8_t in[], size_t len) + { + if(len > max_fuzzer_input_size) + return; + + try + { + Botan::URI::fromAny(std::string(reinterpret_cast<const char*>(in), len)); + } + catch(Botan::Exception& e) { } + } |