diff options
| author | Andreas Schwab <schwab@suse.de> | 2019-02-14 12:43:40 +0100 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2019-03-07 10:57:29 +0100 |
| commit | cd8133679f7e0e2c292f631f1c78b2452d2435c7 (patch) | |
| tree | c307b9b68ec1defbacba25defdfd35169258e54e /python/qemu/qmp.py | |
| parent | e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b (diff) | |
| download | focaccia-qemu-cd8133679f7e0e2c292f631f1c78b2452d2435c7.tar.gz focaccia-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 'python/qemu/qmp.py')
0 files changed, 0 insertions, 0 deletions