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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: BSON
    • Labels:
      None
    • Story Points:
      1

      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: