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

Occasional crash with mongodb+srv URI on Windows

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.13.0
    • 1.9.0
    • network
    • None

    Description

      Reported by Jeroenooms. On his particular Windows networking setup, when the C Driver makes a TXT query for the address specified in a mongodb+srv URI, it receives multiple responses that are not TXT records; I've observed A records in the results, maybe there are other record types. Apparently this is a behavior of the DnsQuery_UTF8 function we use on Windows. Since the C Driver assumes all responses to a TXT query are TXT records, and attempts to process them as TXT records, it reads an uninitialized field of the DNS_RECORD struct and crashes.

      On Windows, the driver should check each record's type before trying to process it.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: