uninitialised value in OID object due to bad struct alignment

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Internal Client
    • None
    • Environment:
      gcc 4.4.5, boost 1.42, debian 6 64bits
    • None
    • None
    • None
    • None
    • None
    • None

      The union used in the definition of the OID object (oid.h) is not properly aligned and leads to "uninitialized value" in valgrind and not expected behavior. This is critical because mongodb C++ driver OID data is broken.

      More on data alignment here: http://en.wikipedia.org/wiki/Data_structure_alignment

            Assignee:
            Unassigned
            Reporter:
            Eric Nashil
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: