Markus Armbruster
7111a86e1b
qapi: Assert non-input visitors see only valid alternate tags
...
An alternate type's visit_type_FOO() fails when it runs into an
invalid ->type.
This is appropriate with an input visitor: visit_start_alternate()
sets ->type according to the input, and bad input can lead to bad
->type.
It should never happen with an output, clone or dealloc visitor: if it
did, the alternate being output, cloned or deallocated would be messed
up beyond repair. Assert that.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200424084338.26803-12-armbru@redhat.com>
2020-04-30 07:26:40 +02:00
..
2020-04-04 14:14:09 +02:00
2020-04-14 13:15:40 +01:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00
2020-04-30 07:26:40 +02:00
2018-08-23 18:46:25 +02:00
2019-03-12 08:04:22 +01:00
2020-02-07 15:15:16 +01:00
2020-03-17 21:09:26 -04:00
2020-02-07 15:12:48 +01:00
2018-07-05 15:59:41 +01:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00
2016-12-20 21:52:12 +01:00
2019-12-16 10:59:50 -05:00
2019-07-23 15:53:25 +01:00
2020-03-29 06:33:47 -04:00
2019-06-12 13:20:20 +02:00
2016-10-28 18:17:23 +03:00
2019-03-22 16:18:07 +00:00
2019-05-07 12:55:02 +01:00
2018-07-05 15:09:52 +02:00
2019-07-15 20:58:37 +02:00
2020-03-30 11:44:04 -07:00
2020-02-07 15:15:16 +01:00
2017-05-10 10:19:24 +03:00
2020-02-07 15:15:16 +01:00
2013-09-09 14:17:56 -05:00
2016-06-07 18:19:23 +03:00
2019-01-11 15:46:55 +01:00
2020-03-20 16:02:00 +01:00
2020-02-22 08:26:47 +00:00
2020-02-13 11:31:58 +01:00
2020-03-09 15:59:31 +01:00
2020-03-12 11:14:05 +00:00
2020-03-06 10:05:24 +00:00
2020-04-14 17:15:33 +01:00
2019-10-07 14:54:45 +02:00
2020-02-13 13:40:59 +00:00
2020-02-07 15:15:16 +01:00
2019-11-06 13:28:27 +01:00
2019-03-11 16:55:52 +01:00
2020-01-13 16:42:20 +00:00
2013-09-30 09:44:35 +02:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:15:16 +01:00
2017-05-10 10:19:24 +03:00
2018-10-16 18:34:19 +02:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00
2017-05-10 10:19:24 +03:00
2019-02-05 16:50:16 +01:00
2019-02-05 16:50:16 +01:00
2020-03-06 10:04:57 +00:00
2020-02-07 15:12:48 +01:00
2020-01-23 16:41:36 +00:00
2020-03-20 16:02:00 +01:00
2020-03-20 16:02:00 +01:00
2020-02-07 15:15:16 +01:00