On 07/02/2019 15:51, Andreas Schwab wrote: > 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 old > value of the addrlen parameter, so that it doesn't write past the buffer > limits. > > Signed-off-by: Andreas Schwab <sch...@suse.de> > --- > linux-user/syscall.c | 38 ++++++++++++++++++++++---------------- > 1 file changed, 22 insertions(+), 16 deletions(-)
Reviewed-by: Laurent Vivier <laur...@vivier.eu>