summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2017-08-07 09:59:49 -0400
committerDan Winship <danw@gnome.org>2017-08-07 09:59:49 -0400
commit7aa41c2f6b2b159a2503cf02dc203cbf1493c4b7 (patch)
treed2c29755678103d4c4e88000c1a71913b2b7a7de /tests
parent7cd1e328ec3243da7a0e83ba860ae83b8b1438e5 (diff)
downloadlibsoup-7aa41c2f6b2b159a2503cf02dc203cbf1493c4b7.tar.gz
Fix out-of-bounds read in URI parsing
https://bugzilla.gnome.org/show_bug.cgi?id=785042
Diffstat (limited to 'tests')
-rw-r--r--tests/uri-parsing.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/uri-parsing.c b/tests/uri-parsing.c
index ba3b1290..85f09b9e 100644
--- a/tests/uri-parsing.c
+++ b/tests/uri-parsing.c
@@ -151,7 +151,11 @@ static struct {
{ "http://[fe80::dead:beef%25em1]/", "http://[fe80::dead:beef%25em1]/", NULL,
{ "http", NULL, NULL, "fe80::dead:beef%em1", 80, "/", NULL, NULL } },
{ "http://[fe80::dead:beef%10]/", "http://[fe80::dead:beef%2510]/", NULL,
- { "http", NULL, NULL, "fe80::dead:beef%10", 80, "/", NULL, NULL } }
+ { "http", NULL, NULL, "fe80::dead:beef%10", 80, "/", NULL, NULL } },
+
+ /* ".." past top */
+ { "http://example.com/..", "http://example.com/", "785042",
+ { "http", NULL, NULL, "example.com", 80, "/", NULL, NULL } },
};
static int num_abs_tests = G_N_ELEMENTS(abs_tests);