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

Look into the use of string_view .data()

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      .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

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            matt.cotter Matt Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: