From 92c783d6a5c80af365434c28d9c4717e7e31a1e0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 15 Aug 2020 11:58:54 +0200 Subject: Harden prefixed name parsing --- tests/bad/bad-pn-escape.ttl | 2 ++ tests/bad/manifest.ttl | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/bad/bad-pn-escape.ttl (limited to 'tests/bad') diff --git a/tests/bad/bad-pn-escape.ttl b/tests/bad/bad-pn-escape.ttl new file mode 100644 index 00000000..2b363e89 --- /dev/null +++ b/tests/bad/bad-pn-escape.ttl @@ -0,0 +1,2 @@ +@prefix : . +:s :p :\a diff --git a/tests/bad/manifest.ttl b/tests/bad/manifest.ttl index d294f120..57fb02f7 100644 --- a/tests/bad/manifest.ttl +++ b/tests/bad/manifest.ttl @@ -62,6 +62,7 @@ <#bad-num> <#bad-object2> <#bad-object> + <#bad-pn-escape> <#bad-prefix> <#bad-semicolon-after-subject> <#bad-string> @@ -351,6 +352,11 @@ mf:name "bad-object" ; mf:action . +<#bad-pn-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-pn-escape" ; + mf:action . + <#bad-prefix> rdf:type rdft:TestTurtleNegativeSyntax ; mf:name "bad-prefix" ; -- cgit v1.2.1