summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-12-15 11:01:37 +0100
committerRoland Reichwein <mail@reichwein.it>2022-12-15 11:01:37 +0100
commit55d1d3612141ef1fe858b2bccb950da51cfe7a17 (patch)
tree50cc3a90dd5d3eea8e4f1020da165e2bc31e0556 /src
parent53e50b9fd7f051d039e40f77fa00498dd9a8e2b0 (diff)
Bugfix ValidationHEADv1.10master
Diffstat (limited to 'src')
-rw-r--r--src/test-unicode.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test-unicode.cpp b/src/test-unicode.cpp
index 948dbcc..0b5ced7 100644
--- a/src/test-unicode.cpp
+++ b/src/test-unicode.cpp
@@ -141,6 +141,15 @@ std::vector<std::basic_string<utf8_t>> failure_strings_char8_t {
(utf8_t*)"text1\xc3\xc3\xa4text3",
(utf8_t*)"text1\xc3text2\xc3\xa4",
+ (utf8_t*)"\xff",
+ (utf8_t*)"\xff\xff",
+ (utf8_t*)"\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff\xff\xff\xff",
+
(utf8_t*)"\xF8\x80\x80\x80\x80", // overlong encoding of valid code point
(utf8_t*)"text1\xF8\x80\x80\x80\x80text2",
(utf8_t*)"\xF8\x80\x80\x80\x80text2",