]> git.proxmox.com Git - qemu.git/commit
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)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 7 May 2010 07:07:42 +0000 (09:07 +0200)
commit8cef921d18025b4ce4e749eed391308033fee232
treeb0cdf43b52aef52f42eeabe9a00b4c4d9a15296e
parentb04c3db504f35b57a2ce519313f3d49fcecf6cb3
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>
(cherry picked from commit 72ff25e4e98d6dba9286d032b9ff5432553bbad5)
qemu-img.c