[CXX-827] uri constructor calls .data() on a string_view and passes to libmongoc Created: 21/Jan/16  Updated: 28/Jan/16  Resolved: 22/Jan/16

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: 3.0.0-rc0
Fix Version/s: 3.0.0

Type: Bug Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

This is an unsafe operation, since a string_view is not guaranteed to be null terminated.



 Comments   
Comment by Githook User [ 22/Jan/16 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-827 Uri constructor takes a string::view_or_value
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/0242179fb12065b2e84fdac82a873ef32bc6d15f

Comment by Samantha Ritter (Inactive) [ 22/Jan/16 ]

code review: https://github.com/mongodb/mongo-cxx-driver/pull/449

Generated at Wed Feb 07 22:00:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.