summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorLiam Merwick2019-03-21 12:57:52 +0100
committerMarkus Armbruster2019-03-26 08:10:11 +0100
commit19e8ff485a25001f48d7cbfaed24663dae001df7 (patch)
treeb81a520be650d1e8c0b04d420a1e4f4d001068f9 /qapi
parentxen-block: Replace qdict_put_obj() by qdict_put() where appropriate (diff)
downloadqemu-19e8ff485a25001f48d7cbfaed24663dae001df7.tar.gz
qemu-19e8ff485a25001f48d7cbfaed24663dae001df7.tar.xz
qemu-19e8ff485a25001f48d7cbfaed24663dae001df7.zip
json: Fix off-by-one assert check in next_state()
The assert checking if the value of lexer->state in next_state(), which is used as an index to the 'json_lexer' array, incorrectly checks for an index value less than or equal to ARRAY_SIZE(json_lexer). Fix assert so that it just checks for an index less than the array size. Signed-off-by: Liam Merwick <liam.merwick@oracle.com> Message-Id: <1553169472-25325-1-git-send-email-liam.merwick@oracle.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Li Qiang <liq3ea@gmail.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions