vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Oct 27 18:31:29 2016 +0300| [cfb54549f9418ac9d615fd5f2c1b4a568fc777a3] | committer: Rémi Denis-Courmont
url: test invalid port numbers > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cfb54549f9418ac9d615fd5f2c1b4a568fc777a3 --- src/test/url.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/url.c b/src/test/url.c index bb5a59c..2ed99d5 100644 --- a/src/test/url.c +++ b/src/test/url.c @@ -300,6 +300,10 @@ int main (void) /* Invalid URIs */ test_url_parse("p://G a r b a g e", "p", NULL, NULL, NULL, 0, NULL, NULL); test_url_parse("p://h/G a r b a g e", "p", NULL, NULL, "h", 0, NULL, NULL); + test_url_parse("http://example.com:", "http", NULL, NULL, "example.com", 0, + NULL, NULL); + test_url_parse("http://example.com:123xyz", "http", NULL, NULL, + "example.com", 123, NULL, NULL); /* Reference test cases for reference URI resolution */ static const char *rfc3986_cases[] = _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
