Re: [Qemu-devel] [PATCH 2/3] slirp: Convert mbufs to use g_malloc() and g_free()

2017-02-10 Thread Philippe Mathieu-Daudé
On 02/04/2017 08:08 PM, Peter Maydell wrote: The mbuf code currently doesn't check the result of doing a malloc() or realloc() of its data (spotted by Coverity, CID 1238946). Since the m_inc() API assumes that extending an mbuf must succeed, just convert to g_malloc() and g_free(). Signed-off-by

[Qemu-devel] [PATCH 2/3] slirp: Convert mbufs to use g_malloc() and g_free()

2017-02-04 Thread Peter Maydell
The mbuf code currently doesn't check the result of doing a malloc() or realloc() of its data (spotted by Coverity, CID 1238946). Since the m_inc() API assumes that extending an mbuf must succeed, just convert to g_malloc() and g_free(). Signed-off-by: Peter Maydell --- slirp/mbuf.c | 30 +++