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

DataBuilder move assignment computes size incorrectly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.13, 4.0.24
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0
    • Security 2019-11-04

      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.

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

              Created:
              Updated:
              Resolved: