test: empty strings are not valid IDNA
Fixes: https://github.com/libuv/libuv/security/advisories/GHSA-f74f-cvh7-c6q6
This commit is contained in:
parent
3530bcc303
commit
e0327e1d50
@ -151,8 +151,8 @@ TEST_IMPL(idna_toascii) {
|
|||||||
/* Illegal inputs. */
|
/* Illegal inputs. */
|
||||||
F("\xC0\x80\xC1\x80", UV_EINVAL); /* Overlong UTF-8 sequence. */
|
F("\xC0\x80\xC1\x80", UV_EINVAL); /* Overlong UTF-8 sequence. */
|
||||||
F("\xC0\x80\xC1\x80.com", UV_EINVAL); /* Overlong UTF-8 sequence. */
|
F("\xC0\x80\xC1\x80.com", UV_EINVAL); /* Overlong UTF-8 sequence. */
|
||||||
|
F("", UV_EINVAL);
|
||||||
/* No conversion. */
|
/* No conversion. */
|
||||||
T("", "");
|
|
||||||
T(".", ".");
|
T(".", ".");
|
||||||
T(".com", ".com");
|
T(".com", ".com");
|
||||||
T("example", "example");
|
T("example", "example");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user