Received: from eggs.gnu.org ([140.186.70.92]:35396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpIOU-0001Ah-Ta for qemu-devel@nongnu.org; Mon, 23 Jan 2012 06:49:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpIOQ-0003iF-Ag for qemu-devel@nongnu.org; Mon, 23 Jan 2012 06:49:02 -0500 Message-ID: <4F1D49F4.5090801@redhat.com> Date: Mon, 23 Jan 2012 12:52:20 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <1327150464-29682-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1327150464-29682-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] block/vdi: Zero unused parts when allocating a new block (fix #919242) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Am 21.01.2012 13:54, schrieb Stefan Weil: > The new block was filled with zero when it was allocated by g_malloc0, > but when it was reused later and only partially used, data from the > previously allocated block were still present and written to the new > block. > > This caused the problems reported by bug #919242 > (https://bugs.launchpad.net/qemu/+bug/919242). > > Now the unused parts of the new block which are before and after the data > are always filled with zero, so it is no longer necessary to zero the whole > block with g_malloc0. > > I also updated the copyright comment. > > Signed-off-by: Stefan Weil Thanks, applied to the block branch (this is not trivial!) Kevin