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

_mongoc_cursor_fetch_stream may fail to check for non-null server stream

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.21.1
    • Affects Version/s: 1.21.0
    • Component/s: libmongoc
    • None

      When _mongoc_cursor_fetch_stream was modified in 9eba451 for CDRIVER-3893, a code path was introduced where the return value of mongoc_cluster_stream_for_server was no longer checked for a null value before access.

      There are few conditions where mongoc_cluster_stream_for_server might return null, but I observed this through a segfault in PHPC's server-executeQuery-012.phpt test due a mismatched server hint and pinned client session.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: