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

Uninitialized regions RecordId::_buffer may be accessed by synthesized lifecycle methods

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Dev Platform 2021-09-20

    Description

      The _buffer field in RecordId is (apparently intentionally) uninitialized. That isn't a problem in itself, but the current implementation relies on compiler generated copy operations which can access this field. Either the field needs to be initialized with zero bytes, or explicit lifecycle methods need to be implemented which honor the type tag and avoid reading from the uninitialized region of the _buffer field.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: