]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: Drop support for escape sequences other than \\
authorMarkus Armbruster <armbru@redhat.com>
Fri, 13 Sep 2019 20:13:40 +0000 (22:13 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 24 Sep 2019 12:07:22 +0000 (14:07 +0200)
commit9b4416bfc1ea5fb3398e8f78a90caa88dd301c37
treef9f7873635cf4f07f9f55e42d8dbbb34df058778
parent56a8caff922df8d597895a49f55f2150bff3adb7
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>
19 files changed:
scripts/qapi/common.py
tests/Makefile.include
tests/qapi-schema/escape-outside-string.err [deleted file]
tests/qapi-schema/escape-outside-string.exit [deleted file]
tests/qapi-schema/escape-outside-string.json [deleted file]
tests/qapi-schema/escape-outside-string.out [deleted file]
tests/qapi-schema/escape-too-big.err [deleted file]
tests/qapi-schema/escape-too-big.exit [deleted file]
tests/qapi-schema/escape-too-big.json [deleted file]
tests/qapi-schema/escape-too-big.out [deleted file]
tests/qapi-schema/escape-too-short.err [deleted file]
tests/qapi-schema/escape-too-short.exit [deleted file]
tests/qapi-schema/escape-too-short.json [deleted file]
tests/qapi-schema/escape-too-short.out [deleted file]
tests/qapi-schema/ident-with-escape.err
tests/qapi-schema/ident-with-escape.exit
tests/qapi-schema/ident-with-escape.json
tests/qapi-schema/ident-with-escape.out
tests/qapi-schema/unknown-escape.json