]> git.proxmox.com Git - qemu.git/commit - qemu-io.c
block: replace unchecked strdup/malloc/calloc with glib
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 16 Jan 2012 09:28:06 +0000 (09:28 +0000)
committerKevin Wolf <kwolf@redhat.com>
Thu, 26 Jan 2012 10:39:03 +0000 (11:39 +0100)
commit031380d8770d2df6c386e4aeabd412007d3ebd54
tree400e4b4debd8540eb2d6558e38d13e2cb6783dc5
parentbd6032470631d8d5de6db84ecb55398b70d9d2f3
block: replace unchecked strdup/malloc/calloc with glib

Most of the codebase as been converted to use glib memory allocation
functions.  There are still a few instances of malloc/calloc in the
block layer and qemu-io.  Replace them, especially since they do not
check the strdup/malloc/calloc return value.

Reported-by: Dr David Alan Gilbert <davidagilbert@uk.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkdebug.c
block/blkverify.c
qemu-io.c