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

mongoc_collection_find_indexes can return freed memory

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.1.11
    • Fix Version/s: 1.4.0
    • Component/s: libmongoc
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Story Points:
      2
    • Sprint:
      C Driver 2016 sprint 6

      Description

      mongoc_collection_find_indexes has special handling for two kinds of errors. If it encounters some other error, it returns a pointer to a freed mongoc_cursor_t. This sets up the caller for a use-after-free crash.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: