mongoc_uri_parse_hostname lowercases hostnames (CDRIVER-536) but doesn't NULL-terminate hostnames that exceed the platform's HOST_NAME_MAX. Original reporter used a platform where HOST_NAME_MAX is 64, on my Mac it's 255. Regardless, a longer hostname in the input results in an unterminated string in the mongoc_uri_t host list.
- related to
-
CDRIVER-2044 Max URI set to only 64 chars
- Closed