summaryrefslogtreecommitdiffstats
path: root/include/qapi/qmp
diff options
context:
space:
mode:
authorMarkus Armbruster2018-08-23 18:40:15 +0200
committerMarkus Armbruster2018-08-24 20:26:37 +0200
commitda09cfbf9dcd07c48fe95bdfb2968305de9b9690 (patch)
tree97b894695b7170ca371fb2a3bd82eb7b65e34e34 /include/qapi/qmp
parentqjson: Have qobject_from_json() & friends reject empty and blank (diff)
downloadqemu-da09cfbf9dcd07c48fe95bdfb2968305de9b9690.tar.gz
qemu-da09cfbf9dcd07c48fe95bdfb2968305de9b9690.tar.xz
qemu-da09cfbf9dcd07c48fe95bdfb2968305de9b9690.zip
json: Enforce token count and size limits more tightly
Token count and size limits exist to guard against excessive heap usage. We check them only after we created the token on the heap. That's assigning a cowboy to the barn to lasso the horse after it has bolted. Close the barn door instead: check before we create the token. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180823164025.12553-49-armbru@redhat.com>
Diffstat (limited to 'include/qapi/qmp')
0 files changed, 0 insertions, 0 deletions