]> git.proxmox.com Git - mirror_qemu.git/commit
vvfat: fix out of bounds array_get usage
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Oct 2011 07:12:03 +0000 (09:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Nov 2011 14:42:44 +0000 (15:42 +0100)
commit2b6a43a835e5082dedc6a5eea39a59463f97c81c
tree93ac44583b153d77d22cbdcb3d24bd91f9d555a5
parent756f51e408febecdaff041f096527b820e857762
vvfat: fix out of bounds array_get usage

When reading the address of the first free entry, you cannot
use array_get without first marking all entries as occupied.

This is visible if you change the sectors per cluster on a
floppy from 2 to 1.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c