Coverage Report

Created: 2022-11-24 06:56

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