-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70a12bf
commit 91e6115
Showing
9 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
#include <jsoncons/json.hpp> | ||
#include <jsoncons_ext/ubjson/ubjson.hpp> | ||
#include <jsoncons_ext/ubjson/ubjson_reader.hpp> | ||
#include <catch/catch.hpp> | ||
#include <sstream> | ||
|
||
using namespace jsoncons; | ||
using namespace jsoncons::ubjson; | ||
|
||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size) | ||
{ | ||
std::string s(reinterpret_cast<const char*>(data), size); | ||
std::istringstream is(s); | ||
std::vector<uint8_t> s1; | ||
ubjson_bytes_encoder encoder(s1); | ||
ubjson_stream_reader reader(is, encoder); | ||
std::string s(reinterpret_cast<const char*>(data), size); | ||
std::istringstream is(s); | ||
std::vector<uint8_t> s1; | ||
ubjson_bytes_encoder encoder(s1); | ||
ubjson_stream_reader reader(is, encoder); | ||
|
||
std::error_code ec; | ||
reader.read(ec); | ||
std::error_code ec; | ||
reader.read(ec); | ||
|
||
return 0; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters