<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qapi-schema/alternate-data-invalid.out, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/tests/qapi-schema/alternate-data-invalid.out?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qapi-schema/alternate-data-invalid.out?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-04-30T10:59:54+00:00</updated>
<entry>
<title>qapi/expr.py: Check type of union and alternate 'data' member</title>
<updated>2021-04-30T10:59:54+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-04-21T18:20:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4918bb7defbdcb1e27cc2adf4e1604486d778ece'/>
<id>urn:sha1:4918bb7defbdcb1e27cc2adf4e1604486d778ece</id>
<content type='text'>
Prior to this commit, specifying a non-object value here causes the QAPI
parser to crash in expr.py with a stack trace with (likely) an
AttributeError when we attempt to call that value's items() method.

This member needs to be an object (Dict), and not anything else. Add a
check for this with a nicer error message, and formalize that check with
new test cases that exercise that error.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-Id: &lt;20210421182032.3521476-8-jsnow@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
</feed>
