]> git.proxmox.com Git - qemu.git/commit
linux-user: make bogus negative iovec lengths fail EINVAL
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 8 Feb 2013 07:58:41 +0000 (07:58 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 11 Mar 2013 12:34:05 +0000 (14:34 +0200)
commitdfae8e00f8ddeedcda24bd28f71d4fd2a9f988b8
tree0b20f25353cc5cfa637fdfd7c6eb66203800a4c3
parent63ec54d7b319824df8b60cfe25afdfb607ce3905
linux-user: make bogus negative iovec lengths fail EINVAL

If the guest passes us a bogus negative length for an iovec, fail
EINVAL rather than proceeding blindly forward. This fixes some of
the error cases tests for readv and writev in the LTP.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c