[CONC-511] Increase HOSTNAME_LENGTH Created: 2020-10-26  Updated: 2020-10-26  Resolved: 2020-10-26

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.1.10
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

The maximum supported length of a hostname is limited by constant HOSTNAME_LENGTH up to 60 chars and should be increased to 254.

manpage for hostname(7) says:
"Each element of the hostname must be from 1 to 63 characters long and the entire hostname, including the dots, can be at most 253 characters long. Valid characters for hostnames are ASCII(7) letters from a to z, the digits from 0 to 9, and the hyphen . A hostname may not start with a hyphen."



 Comments   
Comment by Georg Richter [ 2020-10-26 ]

False positive HOSTNAME_LENGTH is not used anymore in C/C.

Generated at Thu Feb 08 03:05:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.