Coverage Report

Created: 2020-05-23 13:54

/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
4.62k
   {
12
4.62k
   if(len > max_fuzzer_input_size)
13
0
      return;
14
4.62k
15
4.62k
   try
16
4.62k
      {
17
4.62k
      Botan::URI::fromAny(std::string(reinterpret_cast<const char*>(in), len));
18
4.62k
      }
19
4.62k
   catch(Botan::Exception& e) { }
20
4.62k
   }