Coverage Report

Created: 2022-11-24 06:56

/src/botan/src/fuzzer/cert.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
* (C) 2015,2016 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6
7
#include "fuzzers.h"
8
#include <botan/x509cert.h>
9
#include <botan/data_src.h>
10
11
void fuzz(const uint8_t in[], size_t len)
12
7.79k
   {
13
7.79k
   if(len > max_fuzzer_input_size)
14
0
      return;
15
16
7.79k
   try
17
7.79k
      {
18
7.79k
      Botan::DataSource_Memory input(in, len);
19
7.79k
      Botan::X509_Certificate cert(input);
20
7.79k
      }
21
7.79k
   catch(Botan::Exception& e) { }
22
7.79k
   }