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

DataBuilder move assignment computes size incorrectly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.1, 4.2.13, 4.0.24
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0
    • Security 2019-11-04

    Description

      In DataBuilder& operator=(DataBuilder&& other), this line computes the start _unwrittenSpaceCursor based on the start of _buf.

              _unwrittenSpaceCursor = {_buf.get(), _buf.get() + other.size()};
      

      This is incorrect as the start of _unwrittenSpaceCursor needs to be offset by size.

      This was discovered during the IAM Protocol POC.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: