diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-09 12:59:36 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 08:17:26 -0600 |
commit | d7b81937161232f0cfdefbbbc151bf43d1404aae (patch) | |
tree | 87d634d61e3cd141c0c8fa0d9e8394832974cf1d /hw/usb-net.c | |
parent | 2e51813417d2a60f0fa2e0e5a4707b47440b4361 (diff) |
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 <aliguori@us.ibm.com>
(cherry picked from commit 20ff6c8066eb5346b9e066851cf8a1e0564a0f1a)
Diffstat (limited to 'hw/usb-net.c')
0 files changed, 0 insertions, 0 deletions