Received: from eggs.gnu.org ([140.186.70.92]:48427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REJoL-00081P-89 for qemu-devel@nongnu.org; Thu, 13 Oct 2011 07:50:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REJoJ-0007LJ-JP for qemu-devel@nongnu.org; Thu, 13 Oct 2011 07:50:53 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:59878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REJoJ-0007Kg-55 for qemu-devel@nongnu.org; Thu, 13 Oct 2011 07:50:51 -0400 Date: Thu, 13 Oct 2011 12:50:50 +0100 From: Stefano Stabellini In-Reply-To: <4E960039.5030607@weilnetz.de> Message-ID: References: <4E960039.5030607@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: Re: [Qemu-devel] Buggy SDL Zoom List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developers , Stefano Stabellini On Wed, 12 Oct 2011, Stefan Weil wrote: > Hi, > > the SDL zoom feature which is implemented in sdl_zoom_template.h > (and the SDL_rotozoom version which it is based on) accesses memory > beyond the allocated limits. > > This can be easily reproduced using Valgrind and some Linux desktop > which resizes QEMU's window to fill the whole screen (I did run the tests > on an Ubuntu netbook). > > Another effect can be observed by repeatedly increasing the zoom factor > with the Alt-Ctrl-+: the image grows up to a certain value and then > collapses again. > > It looks like other programs using SDL_rotozoom also discovered > out-of-bound problems, and in newer versions, the SDL_rotozoom > code was totally rewritten. > > For security reasons, I suggest disabling the zoom feature until > either the current code is replaced by a (tested) newer version > of SDL_rotozoom or fixed. I am OK with that.