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

Remove undefined behavior from mongo::OID

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

      The implementation of mongo::OID relies on undefined behavior around alignment and aliasing. The makes OID unusable on architectures that require aligned reads/writes, or when building without -fno-strict-aliasing.

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

              Created:
              Updated:
              Resolved: