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.39k | { |
8 | 5.39k | std::string input(reinterpret_cast<const char*>(data), size); |
9 | 5.39k | try{ |
10 | 5.39k | json val = json::parse(input); |
11 | 5.39k | } |
12 | 5.39k | catch(const jsoncons::ser_error&) {} |
13 | ||
14 | 5.39k | return 0; |
15 | 5.39k | } |