diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test-unicode.cpp | 9 |
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", |