[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 |
||
| Issue Links: |
|
||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||
| 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: |