On Thu, Jul 17, 2014 at 11:41:53AM +0200, Kevin Wolf wrote: > qcow2's report_unsupported_feature() had two bugs: A 32 bit truncation > would prevent feature table entries for bits 32-63 from being used, and > it could assign errp multiple times if there was more than one unknown > feature, resulting in an error_set() assertion failure. > > Fix the truncation, make sure to set the error exactly once and add a > qemu-iotests case for it. > > This fixes https://bugs.launchpad.net/qemu/+bug/1342704/ > > Reported-by: Maria Kustova <mari...@catit.be> > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > block/qcow2.c | 21 +++++++++++++----- > tests/qemu-iotests/036 | 52 > ++++++++++++++++++++++++++++++++++++++++++++- > tests/qemu-iotests/036.out | 35 ++++++++++++++++++++++++++++++ > tests/qemu-iotests/qcow2.py | 15 ++++++++----- > 4 files changed, 112 insertions(+), 11 deletions(-)
Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan
pgpAgVigEsMCc.pgp
Description: PGP signature