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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Dev Platform 2021-09-20
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: