]> git.ipfire.org Git - thirdparty/qemu.git/commit
parallels: Sanity check for s->tracks (CVE-2014-0142)
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:06:09 +0000 (13:06 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Jul 2014 21:31:28 +0000 (16:31 -0500)
commit97a0e27e719ad2d01420969adebb52f337fa6b94
tree126b4ed1d510e6dabbaa1c93ff464803328f965c
parent750336bc908fd6e728d9ff127d532af70b4ff776
parallels: Sanity check for s->tracks (CVE-2014-0142)

This avoids a possible division by zero.

Convert s->tracks to unsigned as well because it feels better than
surviving just because the results of calculations with s->tracks are
converted to unsigned anyway.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 9302e863aa8baa5d932fc078967050c055fa1a7f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/parallels.c
tests/qemu-iotests/076
tests/qemu-iotests/076.out