Markus Armbruster
e2050ef633
qapi: Fix to reject 'data': 'mumble' in struct
...
A struct's 'data' must be a JSON object defining the struct's members.
The QAPI code generator incorrectly accepts a JSON string instead, and
then crashes in QAPISchema._make_members() called from
._def_struct_type().
Fix to reject it: factor check_type_implicit() out of
check_type_name_or_implicit(), and switch check_struct() to use it
instead. Also add a test case.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230316071325.492471-9-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[More detailed commit message]
2023-04-24 15:21:39 +02:00
..
2022-04-21 10:11:25 +02:00
2022-04-21 10:11:25 +02:00
2022-04-21 10:11:25 +02:00
2021-08-26 13:53:56 +02:00
2021-03-23 22:31:53 +01:00
2021-03-23 22:31:53 +01:00
2022-04-21 10:11:25 +02:00
2022-04-21 10:11:25 +02:00
2022-04-21 10:11:25 +02:00
2021-04-30 12:59:54 +02:00
2021-04-30 12:59:54 +02:00
2021-04-30 12:59:54 +02:00
2021-03-23 22:31:05 +01:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2023-04-24 15:21:39 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-09-03 17:09:10 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-09-03 17:09:10 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-09-08 15:30:30 +02:00
2021-09-08 15:30:10 +02:00
2021-09-08 15:30:10 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-02-08 14:15:58 +01:00
2021-10-02 07:33:41 +02:00
2020-09-29 17:55:39 +02:00
2020-09-29 17:55:39 +02:00
2020-09-29 17:55:39 +02:00
2020-09-07 16:35:16 +02:00
2020-09-07 16:35:16 +02:00
2020-09-07 16:35:16 +02:00
2021-03-23 22:31:05 +01:00
2021-10-02 07:33:42 +02:00
2021-10-27 17:18:55 +02:00
2021-10-27 17:18:55 +02:00
2020-09-29 17:55:39 +02:00
2021-10-27 17:18:55 +02:00
2021-03-23 22:31:05 +01:00
2021-09-03 17:09:10 +02:00
2021-03-23 22:31:05 +01:00
2021-02-08 14:15:58 +01:00
2021-03-23 22:31:43 +01:00
2021-03-23 22:31:43 +01:00
2021-10-27 17:18:55 +02:00
2021-07-15 12:56:41 +02:00
2021-07-15 12:56:41 +02:00
2021-07-15 12:56:41 +02:00
2021-09-03 17:09:10 +02:00
2021-09-25 06:55:54 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 21:38:39 +01:00
2021-03-23 21:38:39 +01:00
2023-04-24 15:21:39 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-02-08 14:15:58 +01:00
2021-02-08 14:15:58 +01:00
2021-02-08 14:15:58 +01:00
2021-03-05 15:40:50 +01:00
2023-04-24 15:21:39 +02:00
2021-05-20 11:28:28 +02:00
2021-05-20 11:28:28 +02:00
2021-05-20 11:28:28 +02:00
2021-05-20 11:28:28 +02:00
2021-05-20 11:28:28 +02:00
2021-05-20 11:28:28 +02:00
2021-05-20 11:28:27 +02:00
2021-05-20 11:28:27 +02:00
2021-09-03 17:09:10 +02:00
2021-03-23 21:38:39 +01:00
2021-03-23 21:38:39 +01:00
2023-04-24 15:21:39 +02:00
2021-03-23 21:38:39 +01:00
2021-05-20 11:28:28 +02:00
2020-10-09 07:08:19 +02:00
2020-10-09 07:08:19 +02:00
2020-10-09 07:08:19 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2022-04-21 10:11:25 +02:00
2022-04-21 10:11:25 +02:00
2021-05-20 11:28:28 +02:00
2021-08-26 13:53:56 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:29:37 +01:00
2021-09-27 08:23:25 +02:00
2021-03-23 22:29:37 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2023-04-24 15:21:39 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2023-04-24 15:21:39 +02:00
2023-04-24 15:21:39 +02:00
2023-04-24 15:21:39 +02:00
2021-08-26 13:53:56 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2023-04-24 15:21:39 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:43 +01:00
2021-03-23 22:31:43 +01:00
2021-03-23 22:31:31 +01:00
2021-10-27 17:18:55 +02:00
2021-03-05 15:40:50 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2023-04-24 15:21:39 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-08-26 13:53:56 +02:00
2021-08-26 13:53:56 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-04-30 12:59:54 +02:00
2021-04-30 12:59:54 +02:00
2021-04-30 12:59:54 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-09-27 08:23:25 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00