-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
.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
- duplicates
-
CXX-730 string_view.data() is unsafe
- Closed