+7
−2
Loading
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>