Re: [Qemu-devel] [PATCH v2] bsd_user: Fix potential null pointer dereference

2011-12-11 Thread Blue Swirl
Thanks, applied. On Mon, Nov 21, 2011 at 20:06, Stefan Weil s...@weilnetz.de wrote: 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

Re: [Qemu-devel] [PATCH v2] bsd_user: Fix potential null pointer dereference

2011-11-28 Thread Stefan Weil
Am 21.11.2011 21:06, schrieb Stefan Weil: 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 Weils...@weilnetz.de --- bsd-user/bsdload.c |2 +-

[Qemu-devel] [PATCH v2] bsd_user: Fix potential null pointer dereference

2011-11-21 Thread Stefan Weil
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 s...@weilnetz.de --- bsd-user/bsdload.c |2 +- bsd-user/elfload.c |5 ++--- 2 files