Details
-
Task
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
None
Description
.data() is not guaranteed to be null terminated, but is used in collection.cpp to send pointers to libmongoc. Perhaps c_str() is the right way to go?
For more, see comments here:
https://github.com/mongodb/mongo-cxx-driver/pull/367#discussion_r43909065
Attachments
Issue Links
- duplicates
-
CXX-730 string_view.data() is unsafe
-
- Closed
-