aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-14 13:04:17 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-14 13:04:17 +0000
commit3a03ad6c8a09c2dbcdc4da2d5bacfbae16c4cb94 (patch)
tree4949b60959d9f82aefb95a35f0d73fd23c387518
parent83f508a6cac3660f84fbe36f700988999ec35c3b (diff)
downloadpaludis-3a03ad6c8a09c2dbcdc4da2d5bacfbae16c4cb94.tar.gz
paludis-3a03ad6c8a09c2dbcdc4da2d5bacfbae16c4cb94.tar.xz
Add checks for utf8 sequences that start off ok but contain an EOF
-rw-r--r--paludis/qa/glep_31_check_TEST.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/qa/glep_31_check_TEST.cc b/paludis/qa/glep_31_check_TEST.cc
index b4e8a73..ecf48c8 100644
--- a/paludis/qa/glep_31_check_TEST.cc
+++ b/paludis/qa/glep_31_check_TEST.cc
@@ -66,6 +66,11 @@ namespace test_cases
check_invalid("abc""\xf0""\x2a""\x2a""\x2a""de");
check_invalid("abc""\xf0""\xaa""\x2a""\x2a""de");
check_invalid("abc""\xf0""\xa1""\xa1""\x2a""de");
+
+ check_invalid("abc""\xc2");
+ check_invalid("abc""\xd7");
+ check_invalid("abc""\xe2""\x82");
+ check_invalid("abc""\xf0""\xa1""\xa1");
}
} test_utf8;
}