Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1433

Executing invalid mongoc_bulk_operation_t does not initialize reply bson_t

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.5.0
    • Affects Version/s: None
    • Component/s: Bulk API
    • Labels:
      None

      Bulk ops are usually created with mongoc_collection_create_bulk_operation and the bulk's 's client, database, and collection fields are set automatically. But if the bulk op is created with mongoc_bulk_operation_new, these fields must be set explicitly.

      If a bulk operation with a NULL client, database, or collection is executed it fails, but it should still initialize "reply" before returning false. Currently it does not initialize "reply" until it has checked these three fields.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: