mirror of
https://github.com/nlohmann/json.git
synced 2026-02-11 12:22:33 +00:00
🚨 fix UBSAN warnings
This commit is contained in:
@@ -584,10 +584,9 @@ TEST_CASE("BSON input/output_adapters")
|
||||
{
|
||||
SECTION("std::ostringstream")
|
||||
{
|
||||
std::ostringstream ss;
|
||||
std::basic_ostringstream<std::uint8_t> ss;
|
||||
json::to_bson(json_representation, ss);
|
||||
std::istringstream iss(ss.str());
|
||||
json j3 = json::from_bson(iss);
|
||||
json j3 = json::from_bson(ss.str());
|
||||
CHECK(json_representation == j3);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user