]> Git Repo - qemu.git/commit - qemu-malloc.c
Do not abort on qemu_malloc(0) in production builds
authorAnthony Liguori <[email protected]>
Wed, 9 Dec 2009 18:59:36 +0000 (12:59 -0600)
committerAnthony Liguori <[email protected]>
Sat, 12 Dec 2009 13:59:37 +0000 (07:59 -0600)
commit20ff6c8066eb5346b9e066851cf8a1e0564a0f1a
treea8a990d78768ed038cdbf518aa7baf9e063e05f9
parent725b8a6983215de4e510be68d120279d29ceec41
Do not abort on qemu_malloc(0) in production builds

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 builds, return
qemu_malloc(1) whenever the version file indicates that this is a production
build.

Signed-off-by: Anthony Liguori <[email protected]>
configure
qemu-malloc.c
This page took 0.034459 seconds and 4 git commands to generate.