Improve BSONElement constructor that allows you to optionally provide internal sizes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Execution Team 2024-04-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The BSONElement constructor that allows you to optionally provide fieldName and value sizes optionally using -1 are unsafe. They do not provide a buffer size parameter to make sure we do not read out-of-bounds for the provided input buffer.

      The API can be improved to provide other functions to calculate these sizes so we can also get rid of a bunch of unnecessary branching.

            Assignee:
            Erin Liang
            Reporter:
            Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: