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

Crash in APM with mongoc_client_kill_cursor

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The deprecated function mongoc_client_kill_cursor does not pass database or collection name, but if an APM callback is registered for "command started", it attempts to dereference the database and collection name.

      This function is deprecated so just skip APM.

      Coverity report:

      Defect 99992 (STATIC_C)
      Checker FORWARD_NULL (subcategory none)
      File: /src/mongoc/mongoc-client.c
      Function _mongoc_client_kill_cursor
      /src/mongoc/mongoc-client.c, line: 1638
      Comparing "db" to null implies that "db" might be null.

             if (db && collection &&
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: