Coverage Report

Created: 2020-02-14 15:38

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