]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: Detect Negative Message Sizes in msgsnd System Call
authorTom Musta <tommusta@gmail.com>
Tue, 12 Aug 2014 18:53:37 +0000 (13:53 -0500)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 22 Aug 2014 12:06:35 +0000 (15:06 +0300)
commitedcc5f9dc39309d32f4b3737e6b750ae967f5bbd
treee1e2948466ac9057566dff7aa8e4b5d10b62c6ee
parentb6ce1f6b90903961f66b0aec7be75d6c94560e40
linux-user: Detect Negative Message Sizes in msgsnd System Call

The msgsnd system call takes an argument that describes the message
size (msgsz) and is of type size_t.  The system call should set
errno to EINVAL in the event that a negative message size is passed.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c