linux-user: don't swap NLMSG_DATA() fields
commitb9403979b5c51d42018f40bf568d07519edb992e
authorLaurent Vivier <laurent@vivier.eu>
Thu, 16 Jun 2016 19:01:37 +0000 (16 21:01 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Sun, 26 Jun 2016 10:17:22 +0000 (26 13:17 +0300)
treea45a797874c860e539751840dbf64fce950d1238
parent48dc0f2c3d87c74c31a27e1d17dabf26c378b1e8
linux-user: don't swap NLMSG_DATA() fields

If the structure pointed by NLMSG_DATA() is bigger
than the size of NLMSG_DATA(), don't swap its fields
to avoid memory corruption.

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