Skip to content

Commit 2e3db5f

Browse files
authored
Verifying node issue 51619 (#586)
1 parent 1c89a9f commit 2e3db5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/basic_tests.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,18 @@ TYPED_TEST(basic_tests, nodejs_51514) {
402402
auto out = ada::parse<TypeParam>("http://1.1.1.256");
403403
ASSERT_FALSE(out);
404404
}
405+
405406
// https://github.com/nodejs/node/issues/51593
406407
TYPED_TEST(basic_tests, nodejs_51593) {
407408
auto out = ada::parse<TypeParam>("http://\u200b123.123.123.123");
408409
ASSERT_TRUE(out);
409410
ASSERT_EQ(out->get_href(), "http://123.123.123.123/");
410411
SUCCEED();
411412
}
413+
414+
// https://github.com/nodejs/node/issues/51619
415+
TYPED_TEST(basic_tests, nodejs_51619) {
416+
auto out = ada::parse<TypeParam>("https://0.0.0.0x100/");
417+
ASSERT_FALSE(out);
418+
SUCCEED();
419+
}

0 commit comments

Comments
 (0)