summaryrefslogtreecommitdiffstats
path: root/qdev-monitor.c
diff options
context:
space:
mode:
authorAndreas Schwab2019-02-14 12:43:40 +0100
committerLaurent Vivier2019-03-07 10:57:29 +0100
commitcd8133679f7e0e2c292f631f1c78b2452d2435c7 (patch)
treec307b9b68ec1defbacba25defdfd35169258e54e /qdev-monitor.c
parentlinux-user: Fix ELF_PLATFORM for aarch64_be-linux-user (diff)
downloadqemu-cd8133679f7e0e2c292f631f1c78b2452d2435c7.tar.gz
qemu-cd8133679f7e0e2c292f631f1c78b2452d2435c7.tar.xz
qemu-cd8133679f7e0e2c292f631f1c78b2452d2435c7.zip
linux-user: fix emulation of accept4/getpeername/getsockname/recvfrom syscalls
System calls that return a socket address do so by writing the (possibly truncated) address into the provided buffer space, but setting the addrlen parameter to the actual size of the address. To determine how much to copy back to the target memory the emulation needs to remember the incoming value of the addrlen parameter, so that it doesn't write past the buffer limits. Signed-off-by: Andreas Schwab <schwab@suse.de> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <mvmimxmppcj.fsf_-_@suse.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'qdev-monitor.c')
0 files changed, 0 insertions, 0 deletions