-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
string_view.data() isn't guaranteed to return a null-terminated string. The C driver methods we use expect to get null-terminated strings. We need to find all places we pass strings from string_view's through to the C driver, and make sure we are doing this correctly.
For more background:
https://github.com/mongodb/mongo-cxx-driver/pull/367#discussion_r43909065