Closed Avamander closed 10 months ago
Interesting. Looks like maddy incorrectly checks the length in bytes for U-labels (that is, UTF-8) form instead of encoding to Punycode and checking that instead.
Byte length of UTF-8 encoded string 'äõäoaõoäaõaäõaoäaoaäõoaäooaoaoiuaiauäõiuüõaõäiauõaaa' is 71.
Describe the bug
When an IDN is maximum length allowed, it will be rejected by maddy, even if it's otherwise technically usable and allowed.
For example
xn--oaoaaaoaoaoaooaoaoiuaiauiuaiauaaa-f1cadccdcmd01eddchqcbe07a.tld
, this is not a real domain just reproduces the problem. It just reaches the maximum length of 63 characters allowed for a label in punycode.Steps to reproduce
Add a maximum length IDN to
local_domains
Log files
Environment information
0.6.2