linux-user: fd_trans_host_to_target_data() must process only received data
authorLaurent Vivier <laurent@vivier.eu>
Thu, 16 Jun 2016 19:01:36 +0000 (21:01 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Sun, 26 Jun 2016 10:17:22 +0000 (13:17 +0300)
commit48dc0f2c3d87c74c31a27e1d17dabf26c378b1e8
treec6d5681cf491bbe9a29a837aa726097ed52c9dbc
parent84f34b00c8cccfcefbadc45f68036dea957d2153
linux-user: fd_trans_host_to_target_data() must process only received data

if we process the whole buffer, the netlink helpers can try
to swap invalid data.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/syscall.c