]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
qemu-img: use the heap instead of the huge stack array for win32
authorTeLeMan <geleman@gmail.com>
Mon, 8 Feb 2010 08:20:00 +0000 (16:20 +0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 10 Feb 2010 20:00:53 +0000 (14:00 -0600)
commitd6771bfa52744eb4f959198b4b0e59451463eebf
treee90f754078a6c075deb3b902e84255cd08e0b310
parent6265eb26a375179f193f792e4f0d49036d2cf052
qemu-img: use the heap instead of the huge stack array for win32

The default stack size of PE is 1MB on win32 and IO_BUF_SIZE in
img_convert() & img_rebase() is 2MB, so qemu-img will crash when doing
"convert" & "rebase" on win32.
Although we can improve the stack size of PE to resolve it, I think we
should avoid using the huge stack variables.

Signed-off-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-img.c