Line  | Count  | Source  | 
1  | #include <jsoncons/json_parser.hpp>  | |
2  | #include <jsoncons/json.hpp>  | |
3  | ||
4  | using namespace jsoncons;  | |
5  | ||
6  | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size)  | |
7  | 5.41k  | { | 
8  | 5.41k  | std::string input(reinterpret_cast<const char*>(data), size);  | 
9  | 5.41k  |   try{ | 
10  | 5.41k  | json val = json::parse(input);  | 
11  | 5.41k  | }  | 
12  | 5.41k  |   catch(const jsoncons::ser_error&) {} | 
13  | ||
14  | 5.41k  | return 0;  | 
15  | 5.41k  | }  |