[libsoup] uri-parsing test: add a case that was exercised by a protocol fuzzer
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] uri-parsing test: add a case that was exercised by a protocol fuzzer
- Date: Fri, 3 Feb 2012 14:26:45 +0000 (UTC)
commit e4a8f37b62575729656e2b9299e49b128bb0c29b
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Fri Feb 3 14:20:43 2012 +0000
uri-parsing test: add a case that was exercised by a protocol fuzzer
This was suspected to cause a crash via a NULL path; while it seems it
doesn't actually have that problem, it still seems worth testing.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667637
Bug-NB: NB#294977
Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>
tests/uri-parsing.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/uri-parsing.c b/tests/uri-parsing.c
index dd61c79..ab18170 100644
--- a/tests/uri-parsing.c
+++ b/tests/uri-parsing.c
@@ -125,6 +125,9 @@ static struct {
/* Bug 662806; %-encode non-ASCII characters */
{ "http://host/p\xc3\xa4th/", "http://host/p%C3%A4th/",
{ "http", NULL, NULL, "host", 80, "/p%C3%A4th/", NULL, NULL } },
+
+ { "HTTP:////////////////", "http:////////////////",
+ { "http", NULL, NULL, "", 80, "//////////////", NULL, NULL } },
};
static int num_abs_tests = G_N_ELEMENTS(abs_tests);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]