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

SRV record lookup fails if DNS response exceeds 1024 characters

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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.
    • Fully Compatible

      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@mongodb.com Andreas Braun
            Reporter:
            james.kovacs@mongodb.com James Kovacs
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: