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

mongoc_collection_find_indexes can return freed memory

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: 1.1.11
    • Component/s: libmongoc
    • None
    • Fully Compatible

      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.

            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: