qemu/bsd-user
Stefan Weil c580dee4e1 bsd_user: Fix potential null pointer dereference
This bug was spotted by cppcheck.

Using g_try_malloc0 (as does the linux-user code) fixes this.

v2:
Use g_free in bsdload.c, too. Thanks to Peter Maydell for this hint.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2011-12-10 17:02:05 +00:00
..
freebsd
i386
netbsd
openbsd
sparc
sparc64
x86_64
bsd-mman.h
bsdload.c bsd_user: Fix potential null pointer dereference 2011-12-10 17:02:05 +00:00
elfload.c bsd_user: Fix potential null pointer dereference 2011-12-10 17:02:05 +00:00
errno_defs.h
main.c Avoid allocating TCG resources in non-TCG mode 2011-08-05 10:57:36 -05:00
mmap.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-types.h
qemu.h Fix typos in comments (neccessary -> necessary) 2011-05-08 10:02:18 +01:00
signal.c
strace.c
syscall_defs.h
syscall.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
uaccess.c