[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: |
| Comment by Samantha Ritter (Inactive) [ 22/Jan/16 ] |
|
code review: https://github.com/mongodb/mongo-cxx-driver/pull/449 |