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

Use DataView and DataCursor to implement BSON library

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.7
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: