qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] block/vdi: Allow disk images of size 0


From: Kevin Wolf
Subject: [Qemu-devel] Re: [PATCH] block/vdi: Allow disk images of size 0
Date: Fri, 07 May 2010 10:02:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4

Am 06.05.2010 20:53, schrieb Stefan Weil:
> Even it is not very useful, users may create images of size 0.
> 
> Without the special option CONFIG_ZERO_MALLOC, qemu_mallocz
> aborts execution when it is told to allocate 0 bytes,
> so avoid this kind of call.
> 
> Cc: Kevin Wolf <address@hidden>
> Signed-off-by: Stefan Weil <address@hidden>

This stupid qemu_malloc behaviour only ever introduces bugs instead of
avoiding them... *sigh*

Thanks, applied to the block branch.

Kevin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]