aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests/fuzzers/jigs/ber_decode.cpp
blob: 0f5cc9f20e0e8be7727388796446aae5c73ee50c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* (C) 2016 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "driver.h"

#include <botan/ber_dec.h>

void fuzz(const uint8_t in[], size_t len)
   {
   try
      {
      DataSource_Memory input(in, len);
      BER_Decoder dec(input);

      while(dec.more_items())
         {
         BER_Object obj;
         dec.get_next(obj);
         }
      }
   catch(Botan::Exception& e) { }
   }