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

Fix a bug with how sbe::bson::convertFrom() computes the size of a BinData

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0, 5.1.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.1

      The logic for handling BinDatas in sbe::bson::convertFrom() differs from what sbe::value::copyValue() does. I carefully read through how the BinData type is described at bsonspec.org and I looked at how BinData is implemented in the classic execution engine, and it appears that the logic for handling BinDatas in sbe::bson::convertFrom() is wrong and that sbe::value::copyValue()'s implementation is correct.

      The goals of this task is to update how sbe::bson::convertFrom() handles BinDatas to match what sbe::value::copyValue() does.

            Assignee:
            andrew.paroski@mongodb.com Drew Paroski
            Reporter:
            andrew.paroski@mongodb.com Drew Paroski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: