Re: [Qemu-devel] [PATCH] Do not abort on qemu_malloc(0) in production builds

2009-12-09 Thread Markus Armbruster
Anthony Liguori writes: > Markus Armbruster wrote: >> This still aborts on qemu_realloc(NULL, 0), even with >> CONFIG_ZERO_MALLOC. Intentional? >> > I guess not. Should it? Seems like a very strange case.. It is a strange case, but I think the point of this commit is not to abort on condit

Re: [Qemu-devel] [PATCH] Do not abort on qemu_malloc(0) in production builds

2009-12-09 Thread Anthony Liguori
Markus Armbruster wrote: Anthony Liguori writes: qemu_malloc() does not allow size=0 to be passed in and aborts on this behavior. Unfortunately, there is good reason to believe that within qemu, there are a number of, so far, undetected places that assume size=0 can be safely passed. Since

Re: [Qemu-devel] [PATCH] Do not abort on qemu_malloc(0) in production builds

2009-12-09 Thread Markus Armbruster
Anthony Liguori writes: > qemu_malloc() does not allow size=0 to be passed in and aborts on this > behavior. > > Unfortunately, there is good reason to believe that within qemu, there are a > number of, so far, undetected places that assume size=0 can be safely passed. > Since we do not want to

[Qemu-devel] [PATCH] Do not abort on qemu_malloc(0) in production builds

2009-12-09 Thread Anthony Liguori
qemu_malloc() does not allow size=0 to be passed in and aborts on this behavior. Unfortunately, there is good reason to believe that within qemu, there are a number of, so far, undetected places that assume size=0 can be safely passed. Since we do not want to abort unnecessarily in production buil