summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/group
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2014-03-26 13:05:36 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2014-04-01 13:59:47 +0200
commit97f1c45c6f456572e5b504b8614e4a69e23b8e3a (patch)
tree403d8ec49f195d59319b074da4ecbf08358f3194 /tests/qemu-iotests/group
parenta9ba36a45dfac645a810c31ce15ab393b69d820a (diff)
downloadqemu-97f1c45c6f456572e5b504b8614e4a69e23b8e3a.tar.gz
vpc/vhd: add bounds check for max_table_entries and block_size (CVE-2014-0144)
This adds checks to make sure that max_table_entries and block_size are in sane ranges. Memory is allocated based on max_table_entries, and block_size is used to calculate indices into that allocated memory, so if these values are incorrect that can lead to potential unbounded memory allocation, or invalid memory accesses. Also, the allocation of the pagetable is changed from g_malloc0() to qemu_blockalign(). Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/group')
0 files changed, 0 insertions, 0 deletions