Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15174

Use DataView and DataCursor to implement BSON library

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.7
    • None
    • Internal Code
    • None
    • Fully Compatible

    Description

      Currently, BufBuilder, BSONObjBuilder, and friends use dereferenced reinterpret_cast'ed pointers to read and write raw values into memory. This is undefined behavior in many cases.

      Instead, we should use the new DataView and DataCursor methods to achieve portable implementations.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: