diff options
author | 2017-02-04 23:08:34 +0000 | |
---|---|---|
committer | 2017-02-26 15:39:05 +0100 | |
commit | 70f2e64e4dde21ba8b2e8d3fd682533c89a53487 (patch) | |
tree | bd2bad90855aebf0d743a2daab262598b0ea9878 /scripts/qapi-commands.py | |
parent | slirp: Check qemu_socket() return value in udp_listen() (diff) | |
download | 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/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions