Remove undefined behavior from mongo::OID

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: