[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: providing a libidn compatibility API

From: Tim Ruehsen
Subject: Re: providing a libidn compatibility API
Date: Fri, 27 Jan 2017 16:00:02 +0100
User-agent: KMail/5.2.3 (Linux/4.9.0-1-amd64; KDE/5.28.0; x86_64; ; )

On Thursday, January 26, 2017 2:07:39 PM CET Nikos Mavrogiannopoulos wrote:
> I certainly do. Note that there few failures in the libidn testsuite,
> which I have put them in ifdef XXX. These are in tst_idna2.c, and
> tst_idna4.c. The tst_idna4.c failure has to do with ascii_to_8z in
> libidn2 allowing multiple dots, while the tst_idn2.c failures are
> beyond my knowledge.

As you say, libidn/idn does not allow empty labels, e.g. looking up 
"search..." would result in IDNA_INVALID_LENGTH.

Libidn2/idn2 currently does allow empty labels, there is no equivalent to 
IDNA_INVALID_LENGTH. defines a label having at least 
one character ("must start with a letter").
<label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]

Some more constraints regarding A/U-labels are described at

IMO, libidn2 should check these limits
We would need IDN2_LABEL_TOO_SHORT and a few tests.

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]