summary refs log tree commit diff stats
path: root/include/qapi/qmp/json-lexer.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-11-25 22:23:22 +0100
committerMarkus Armbruster <armbru@redhat.com>2015-11-26 09:17:57 +0100
commit4f2d31fbc0bfdf41feea7d1be49f4f7ffa005534 (patch)
tree6af228fd95b19f09a45fe5972b1858cd53ba3353 /include/qapi/qmp/json-lexer.h
parent3a81a10179b702e031d8f84438193d83a64b4122 (diff)
downloadfocaccia-qemu-4f2d31fbc0bfdf41feea7d1be49f4f7ffa005534.tar.gz
focaccia-qemu-4f2d31fbc0bfdf41feea7d1be49f4f7ffa005534.zip
qjson: Apply nesting limit more sanely
The nesting limit from commit 29c75dd "json-streamer: limit the
maximum recursion depth and maximum token count" applies separately to
braces and brackets.  This makes no sense.  Apply it to their sum,
because that's actually a measure of recursion depth.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1448486613-17634-2-git-send-email-armbru@redhat.com>
Diffstat (limited to 'include/qapi/qmp/json-lexer.h')
0 files changed, 0 insertions, 0 deletions