Received: from eggs.gnu.org ([2001:4830:134:3::10]:49165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xemro-0003yf-Np for qemu-devel@nongnu.org; Thu, 16 Oct 2014 11:21:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xemrh-0006rj-HX for qemu-devel@nongnu.org; Thu, 16 Oct 2014 11:21:28 -0400 Date: Thu, 16 Oct 2014 11:21:19 -0400 From: Don Koch Message-Id: <20141016112119.f38ee047b304cc63c92901be@verizon.com> In-Reply-To: <1413367839-30999-7-git-send-email-kraxel@redhat.com> References: <1413367839-30999-1-git-send-email-kraxel@redhat.com> <1413367839-30999-7-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 5/5] vmware-vga: use vmsvga_verify_rect in vmsvga_fill_rect List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Intel.Product.Security.Incident.Response.Team@intel.com, pmatouse@redhat.com, qemu-devel@nongnu.org, qemu-stable@nongnu.org On Wed, 15 Oct 2014 12:10:39 +0200 Gerd Hoffmann wrote: > Add verification to vmsvga_fill_rect, re-enable HW_FILL_ACCEL. > > Cc: qemu-stable@nongnu.org > Signed-off-by: Gerd Hoffmann > --- > hw/display/vmware_vga.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c > index 1fc9641..7f3a9e6 100644 > --- a/hw/display/vmware_vga.c > +++ b/hw/display/vmware_vga.c > @@ -30,9 +30,7 @@ > > #undef VERBOSE > #define HW_RECT_ACCEL > -#if 0 > #define HW_FILL_ACCEL > -#endif > #define HW_MOUSE_ACCEL > > #include "vga_int.h" > @@ -456,6 +454,10 @@ static inline void vmsvga_fill_rect(struct vmsvga_state_s *s, > uint8_t *src; > uint8_t col[4]; > > + if (!vmsvga_verify_rect(surface, __func__, x, y, w, h)) { > + return; > + } > + Same issue as with vmsvga_copy_rect(). -d