diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-09-13 22:13:40 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-09-24 14:07:22 +0200 |
commit | 9b4416bfc1ea5fb3398e8f78a90caa88dd301c37 (patch) | |
tree | f9f7873635cf4f07f9f55e42d8dbbb34df058778 /tests/qapi-schema/unknown-escape.json | |
parent | 56a8caff922df8d597895a49f55f2150bff3adb7 (diff) |
qapi: Drop support for escape sequences other than \\
Since the previous commit restricted strings to printable ASCII,
\uXXXX's only use is obfuscation. Drop it.
This leaves \\, \/, \', and \". Since QAPI schema strings are all
names, and names are restricted to ASCII letters, digits, hyphen, and
underscore, none of them is useful.
The latter three have no test coverage. Drop them.
Keep \\ to avoid (more) gratuitous incompatibility with JSON.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190913201349.24332-8-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/unknown-escape.json')
-rw-r--r-- | tests/qapi-schema/unknown-escape.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/unknown-escape.json b/tests/qapi-schema/unknown-escape.json index 8e6891e52a..8372e8024f 100644 --- a/tests/qapi-schema/unknown-escape.json +++ b/tests/qapi-schema/unknown-escape.json @@ -1,3 +1,3 @@ -# we only recognize JSON escape sequences, plus our \' extension (no \x) +# we only recognize \\ # { 'command': 'foo', 'data': {} } { 'command': 'foo', 'dat\x61':{} } |