Skip to content

Commit e0327e1

Browse files
committed
test: empty strings are not valid IDNA
Fixes: GHSA-f74f-cvh7-c6q6
1 parent 3530bcc commit e0327e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/test-idna.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ TEST_IMPL(idna_toascii) {
151151
/* Illegal inputs. */
152152
F("\xC0\x80\xC1\x80", UV_EINVAL); /* Overlong UTF-8 sequence. */
153153
F("\xC0\x80\xC1\x80.com", UV_EINVAL); /* Overlong UTF-8 sequence. */
154+
F("", UV_EINVAL);
154155
/* No conversion. */
155-
T("", "");
156156
T(".", ".");
157157
T(".com", ".com");
158158
T("example", "example");

0 commit comments

Comments
 (0)