DataBuilder move assignment computes size incorrectly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: