[CDRIVER-3388] SRV record lookup fails if DNS response exceeds 1024 characters Created: 08/Oct/19  Updated: 28/Oct/23  Resolved: 18/Oct/19

Status: Closed
Project: C Driver
Component/s: libmongoc, network, uri
Affects Version/s: 1.15.1
Fix Version/s: 1.16.0

Type: Bug Priority: Major - P3
Reporter: James Kovacs Assignee: Andreas Braun
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Atlas sharded cluster, MongoDB 4.0.12
PHP library 1.5.0, which uses PHPC 1.6.0 and libmongoc 1.15.1.


Issue Links:
Problem/Incident
causes PHPC-1453 SRV record lookup fails if DNS respon... Closed
Related
related to CDRIVER-3806 SRV responses exceeding 1024 bytes ma... Closed
related to CDRIVER-3515 _mongoc_get_rr_search calls free inst... Closed
Case:
Backwards Compatibility: Fully Compatible

 Description   

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.



 Comments   
Comment by Githook User [ 18/Oct/19 ]

Author:

{'username': 'alcaeus', 'email': 'git@alcaeus.org', 'name': 'Andreas Braun'}

Message: CDRIVER-3388 Fix DNS record lookup for large responses
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9a221e47fb527d88c334f6306719fb526c274c24

Generated at Wed Feb 07 21:17:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.