diff options
author | David Robillard <d@drobilla.net> | 2023-02-05 12:42:52 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | ea4b6e7d109ae3abc7f8ecdf99e3eb33e3484b77 (patch) | |
tree | 9b050faf6286c055d2fc78729eb4b56a12e3746c /test/extra/lax/test-bad-utf8-ttl-out.nt | |
parent | d35082a57adac79703f2c9bb72da468172a209c5 (diff) | |
download | serd-ea4b6e7d109ae3abc7f8ecdf99e3eb33e3484b77.tar.gz serd-ea4b6e7d109ae3abc7f8ecdf99e3eb33e3484b77.tar.bz2 serd-ea4b6e7d109ae3abc7f8ecdf99e3eb33e3484b77.zip |
Strengthen handling of corrupt UTF-8 input
Diffstat (limited to 'test/extra/lax/test-bad-utf8-ttl-out.nt')
-rw-r--r-- | test/extra/lax/test-bad-utf8-ttl-out.nt | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/test/extra/lax/test-bad-utf8-ttl-out.nt b/test/extra/lax/test-bad-utf8-ttl-out.nt index 58f2c52b..c8364786 100644 --- a/test/extra/lax/test-bad-utf8-ttl-out.nt +++ b/test/extra/lax/test-bad-utf8-ttl-out.nt @@ -1,6 +1,30 @@ -<http://example.org/s> <http://example.org/p> "Impossible bytes: \uFFFD \uFFFD" . -<http://example.org/s> <http://example.org/p> "2 continuation bytes: \uFFFD" . -<http://example.org/s> <http://example.org/p> "Missing continuation: \uFFFD" . -<http://example.org/s> <http://example.org/p> "Impossible bytes: \uFFFD \uFFFD" . -<http://example.org/s> <http://example.org/p> "2 continuation bytes: \uFFFD" . -<http://example.org/s> <http://example.org/p> "Missing continuation: \uFFFD" . +<http://example.org/s> <http://example.org/p> "The other values of this property should align nicely" . +<http://example.org/s> <http://example.org/p> "Impossible byte 1: \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Impossible byte 2: \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Four impossible bytes: \uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "First continuation byte: \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Last continuation byte: \uFFFD |" . +<http://example.org/s> <http://example.org/p> "2 continuation bytes: \uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "3 continuation bytes: \uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "4 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "5 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "6 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "7 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "Continuation bytes 1: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "Continuation bytes 2: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "Continuation bytes 3: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "Continuation bytes 4: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "Lonely leading bytes of 2-byte sequences 1: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Lonely leading bytes of 2-byte sequences 2: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Lonely leading bytes of 3-byte sequences: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Lonely leading bytes of 4-byte sequences: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Lonely leading bytes of 5-byte sequences: \uFFFD \uFFFD \uFFFD \uFFFD |" . +<http://example.org/s> <http://example.org/p> "Lonely leading bytes of 6-byte sequences: \uFFFD \uFFFD |" . +<http://example.org/s> <http://example.org/p> "2-byte sequence with last byte missing (U+0000): \uFFFD |" . +<http://example.org/s> <http://example.org/p> "3-byte sequence with last byte missing (U+0000): \uFFFD |" . +<http://example.org/s> <http://example.org/p> "4-byte sequence with last byte missing (U+0000): \uFFFD |" . +<http://example.org/s> <http://example.org/p> "2-byte sequence with last byte missing (U-000007FF): \uFFFD |" . +<http://example.org/s> <http://example.org/p> "3-byte sequence with last byte missing (U-0000FFFF): \uFFFD |" . +<http://example.org/s> <http://example.org/p> "4-byte sequence with last byte missing (U-001FFFFF): \uFFFD |" . +<http://example.org/s> <http://example.org/p> "6 sequences with last byte missing: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |" . +<http://example.org/s> <http://example.org/p> "\nImpossible byte 1: \uFFFD |\nImpossible byte 2: \uFFFD |\nFour impossible bytes: \uFFFD\uFFFD\uFFFD\uFFFD |\nFirst continuation byte: \uFFFD |\nLast continuation byte: \uFFFD |\n2 continuation bytes: \uFFFD\uFFFD |\n3 continuation bytes: \uFFFD\uFFFD\uFFFD |\n4 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD |\n5 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\n6 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\n7 continuation bytes: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\nContinuation bytes 1: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\nContinuation bytes 2: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\nContinuation bytes 3: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\nContinuation bytes 4: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\nLonely leading bytes of 2-byte sequences 1: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |\nLonely leading bytes of 2-byte sequences 2: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |\nLonely leading bytes of 3-byte sequences: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |\nLonely leading bytes of 4-byte sequences: \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD \uFFFD |\nLonely leading bytes of 5-byte sequences: \uFFFD \uFFFD \uFFFD \uFFFD |\nLonely leading bytes of 6-byte sequences: \uFFFD \uFFFD |\n2-byte sequence with last byte missing (U+0000): \uFFFD |\n3-byte sequence with last byte missing (U+0000): \uFFFD |\n4-byte sequence with last byte missing (U+0000): \uFFFD |\n2-byte sequence with last byte missing (U-000007FF): \uFFFD |\n3-byte sequence with last byte missing (U-0000FFFF): \uFFFD |\n4-byte sequence with last byte missing (U-001FFFFF): \uFFFD |\n6 sequences with last byte missing: \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |\n" . |