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

uninitialised value in OID object due to bad struct alignment

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.2.0
    • Internal Client
    • None
    • gcc 4.4.5, boost 1.42, debian 6 64bits

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: