From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Habkost Subject: Re: [PATCH] kvm-autotest: stepeditor: clear image if width, height, or data are invalid Date: Sun, 5 Apr 2009 14:33:03 -0300 Message-ID: <20090405173303.GR21507@blackpad> References: <20090401155558.GK19400@us.ibm.com> <1238790500-sup-8351@blackpad> <1238794446-sup-7467@blackpad> <49D8A487.9060803@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Uri Lublin , Ryan Harper , "kvm@vger.kernel.org" To: Avi Kivity Return-path: Received: from mx2.redhat.com ([66.187.237.31]:42499 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbZDERdU (ORCPT ); Sun, 5 Apr 2009 13:33:20 -0400 Content-Disposition: inline In-Reply-To: <49D8A487.9060803@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Apr 05, 2009 at 03:31:03PM +0300, Avi Kivity wrote: > Eduardo Habkost wrote: >>>>>> SPACE_RGB, False, 8, w, h, w*3) >>>>>> >>> Traceback (most recent call last): >>> File "", line 1, in ? >>> MemoryError >>> >> >> >> > > Instead of returning an empty image here, we should throw an exception. > Qemu shouldn't write invalid image. Throwing an exception is exactly what the current code does, and what I want to prevent. stepeditor is a GUI application, there is no point in aborting because the image is invalid during a small time window. But fixing qemu is welcome, of course. > > I've just sent a patch to qemu-devel which may help with this. -- Eduardo