Crash in APM with mongoc_client_kill_cursor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: