Skip to content

Commit

Permalink
serialization/octree: add further check
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent authored Jan 16, 2024
1 parent cc914a9 commit 1255f9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/hpp/fcl/serialization/octree.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ void load(Archive &ar, hpp::fcl::OcTree &octree,
std::string stream_str;
stream_str.resize(tree_data_size);
/// TODO use stream_str.data in C++17
assert(tree_data_size > 0 && "tree_data_size should be greater than 0");
ar >> make_nvp("tree_data", make_array(&stream_str[0], tree_data_size));
std::istringstream stream(stream_str);

Expand Down

0 comments on commit 1255f9a

Please sign in to comment.