SRV record lookup fails if DNS response exceeds 1024 characters

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.16.0
    • Affects Version/s: 1.15.1
    • Component/s: libmongoc, network, uri
    • None
    • Environment:
      Atlas sharded cluster, MongoDB 4.0.12
      PHP library 1.5.0, which uses PHPC 1.6.0 and libmongoc 1.15.1.
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      In srv_callback (non-Windows) in mongoc-client.c, we allocate a 1024-byte buffer to hold the SRV response. If the response exceeds 1024 characters, we fail the SRV record lookup.

              Assignee:
              Andreas Braun
              Reporter:
              James Kovacs
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: