blob: 6ec9cadbaf3ac3d1d00b3d1e8190fc1873281838 (
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
25
26
27
|
/*
* (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)
{
if(len > 4096)
return;
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) { }
}
|