OSDN Git Service

vpc: Validate block size (CVE-2014-0142)
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:05:37 +0000 (13:05 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Apr 2014 11:59:47 +0000 (13:59 +0200)
commit5e71dfad763d67bb64be79e20e93411c0c30ad25
tree822832bf69e69b8556433869efad0b704fe44140
parent97f1c45c6f456572e5b504b8614e4a69e23b8e3a
vpc: Validate block size (CVE-2014-0142)

This fixes some cases of division by zero crashes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vpc.c
tests/qemu-iotests/088 [new file with mode: 0755]
tests/qemu-iotests/088.out [new file with mode: 0644]
tests/qemu-iotests/group