From 8dcb4129acde2aed353cd66e28678408e7d1257c Mon Sep 17 00:00:00 2001 From: Pavel Grunt Date: Wed, 1 Jun 2016 10:04:48 +0200 Subject: spice-uri: Validate uri scheme Related: rhbz#1335239 Acked-by: Victor Toso --- tests/uri.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/uri.c b/tests/uri.c index 34569ec..80b00f4 100644 --- a/tests/uri.c +++ b/tests/uri.c @@ -79,6 +79,8 @@ static void test_spice_uri_ipv4_bad(void) {"http://127.0.0.1:-80", "http", "127.0.0.1", 3128, NULL, NULL, "Port out of range"}, {"http://127.0.0.1:4294967396", "http", "127.0.0.1", 3128, NULL, NULL, "Port out of range"}, {"http://127.0.0.1:12345678901234", "http", "127.0.0.1", 3128, NULL, NULL, "Port out of range"}, + {"scheme://192.168.1.1:3128", "http", "127.0.0.1", 3128, NULL, NULL, + "Invalid uri scheme for proxy: scheme"}, }; test_spice_uri_bad(invalid_test_cases, G_N_ELEMENTS(invalid_test_cases)); -- cgit v1.2.3