aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bad
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-07-10 11:23:34 +0200
committerDavid Robillard <d@drobilla.net>2017-07-10 12:07:46 +0200
commit0cd0c7356b3670f6ee8ef10c7ae31a9649ce4baa (patch)
tree4162d73ced9a55adc3a2659729081038c6527097 /tests/bad
parent5e9b029e9add90981d31e5577f358ec7db3de3ca (diff)
downloadserd-0cd0c7356b3670f6ee8ef10c7ae31a9649ce4baa.tar.gz
serd-0cd0c7356b3670f6ee8ef10c7ae31a9649ce4baa.tar.bz2
serd-0cd0c7356b3670f6ee8ef10c7ae31a9649ce4baa.zip
Fix hangs when reading corrupt UTF-8
Diffstat (limited to 'tests/bad')
-rw-r--r--tests/bad/bad-char-in-uri.ttl1
-rw-r--r--tests/bad/bad-long-literal-in-list.ttl1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/bad/bad-char-in-uri.ttl b/tests/bad/bad-char-in-uri.ttl
new file mode 100644
index 00000000..49f9c0d4
--- /dev/null
+++ b/tests/bad/bad-char-in-uri.ttl
@@ -0,0 +1 @@
+<ÿÿÿ://a.example/s> <http://a.eoampl†/p> "\u0006!#[]\u007F" .
diff --git a/tests/bad/bad-long-literal-in-list.ttl b/tests/bad/bad-long-literal-in-list.ttl
new file mode 100644
index 00000000..f10b4c3d
--- /dev/null
+++ b/tests/bad/bad-long-literal-in-list.ttl
@@ -0,0 +1 @@
+<> <http://example.org/pred> ("""") . \ No newline at end of file