summaryrefslogtreecommitdiff
path: root/test/urlescape.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-08-03 16:06:17 +0100
committerVincent Sanders <vince@kyllikki.org>2016-08-03 16:06:17 +0100
commit5a73f0797fe8b3c1350bc57405e789517478bc36 (patch)
tree12399d5c34508d968bc81415d7d658139b18833a /test/urlescape.c
parenteb5e0599afe3bae86a375acea4d8ca106594c45b (diff)
downloadnetsurf-5a73f0797fe8b3c1350bc57405e789517478bc36.tar.gz
netsurf-5a73f0797fe8b3c1350bc57405e789517478bc36.tar.bz2
add url escape test for complete garbage input
Diffstat (limited to 'test/urlescape.c')
-rw-r--r--test/urlescape.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/urlescape.c b/test/urlescape.c
index e3d701aeb..e4e1fdb35 100644
--- a/test/urlescape.c
+++ b/test/urlescape.c
@@ -167,6 +167,7 @@ static const struct test_pairs url_unescape_test_vec[] = {
{ "%0G", 3, "%0G", 3 }, /* single character with bad hex value */
{ "%20%0G%20", 9, " %0G ", 5 }, /* three src chars with bad hex value */
{ "%20%00%20", 9, " ", 3 }, /* three src chars with null hex value */
+ { "%@@%[[%__%||%//%::", 18, "%@@%[[%__%||%//%::", 18 }, /* four garbage encoded chars */
{ &simple_string[0], SLEN(simple_string),
&simple_string[0], SLEN(simple_string) }, /* normal string with no percent encoded characters */
{ &most_escaped_upper[0], SLEN(most_escaped_upper),