Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-730

string_view.data() is unsafe

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: