diff options
| author | Peter Maydell | 2017-02-05 00:08:34 +0100 |
|---|---|---|
| committer | Samuel Thibault | 2017-02-26 15:39:05 +0100 |
| commit | 70f2e64e4dde21ba8b2e8d3fd682533c89a53487 (patch) | |
| tree | bd2bad90855aebf0d743a2daab262598b0ea9878 /scripts | |
| parent | slirp: Check qemu_socket() return value in udp_listen() (diff) | |
| download | qemu-70f2e64e4dde21ba8b2e8d3fd682533c89a53487.tar.gz qemu-70f2e64e4dde21ba8b2e8d3fd682533c89a53487.tar.xz qemu-70f2e64e4dde21ba8b2e8d3fd682533c89a53487.zip | |
slirp: Convert mbufs to use g_malloc() and g_free()
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 <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
