MiniDNS / minidns

DNS library for Android and Java SE
Other
220 stars 61 forks source link

Intorduce SafeCharSequence and have DnsLabel and DnsName subclass it #116

Closed Flowdalic closed 3 years ago

Flowdalic commented 3 years ago

This changes the CharSequence representation of DnsLabel and DnsName from the insecure raw representation (which may contain arbitrary bytes) to the escaped safe representation.

See cfaf45a84103 ("Sanitize DNS labels (and names) in toString()") for the motivation.