Home
last modified time | relevance | path

Searched hist:"641543 b7" (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dvdi.c641543b7 Sat Jan 21 12:54:24 GMT 2012 Stefan Weil <sw@weilnetz.de> block/vdi: Zero unused parts when allocating a new block (fix #919242)

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 <sw@weilnetz.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>