Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1347

Calls to bson_append_* are not checked for errors in the core builder

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • None
    • BSON
    • None

    Description

      Throughout the implementation of the core builder (in src/bsoncxx/builder/core.cpp), there are calls to various `bson_append_*` functions, all of which return a boolean indicating whether the call was successful. We should check the return value of these calls and throw an appropriate error message in the case that that it's false, as currently all of them ignore the value returned/

      Attachments

        Activity

          People

            isabella.siu@mongodb.com Isabella Siu (Inactive)
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: