Skip to content

Commit ba82740

Browse files
committed
extend tests and oss-fuzz
1 parent 57d3866 commit ba82740

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

fuzz/url.dict

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Protocols
22
"ftp:"
3+
"file:///"
34
"file:"
45
"http:"
56
"https:"

tests/basic_tests.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,3 +476,10 @@ TYPED_TEST(basic_tests, set_invalid_port) {
476476
ASSERT_TRUE(url->is_valid);
477477
SUCCEED();
478478
}
479+
480+
TYPED_TEST(basic_tests, test_possible_asan) {
481+
auto url = ada::parse<TypeParam>("file:///");
482+
ASSERT_TRUE(url);
483+
ASSERT_EQ(url->get_protocol(), "file:");
484+
SUCCEED();
485+
}

0 commit comments

Comments
 (0)