diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-08-20 19:15:54 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-08-20 22:03:49 +0200 |
commit | 2a03d3e6ae1b1ca86199a0c36a35e8ac847905f6 (patch) | |
tree | d1833d5fc846c95ee59b1db644811a23270ea5d7 /hmp-commands.hx | |
parent | 5b38d0264064055255db991e29d938491f9e8a32 (diff) |
linux-user: fix recvmsg()/recvfrom() with netlink and MSG_TRUNC
If recvmsg()/recvfrom() are used with the MSG_TRUNC flag, they return the
real length even if it was longer than the passed buffer.
So when we translate the buffer we must check we don't go beyond the
end of the buffer.
Bug: https://github.com/vivier/qemu-m68k/issues/33
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20180820171557.7734-2-laurent@vivier.eu>
Diffstat (limited to 'hmp-commands.hx')
0 files changed, 0 insertions, 0 deletions