]> git.proxmox.com Git - qemu.git/commit
hw/arm_gic.c: Define .class_size in arm_gic_info TypeInfo
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 29 Aug 2012 07:52:37 +0000 (08:52 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 29 Aug 2012 13:23:40 +0000 (08:23 -0500)
commit998a74bcda7f3297813732ddc2f28ffe5a12e37a
treef781863c785802f41034381ebea8eafa3d38b1b2
parent1e2778d59d110404428627690950405577be5090
hw/arm_gic.c: Define .class_size in arm_gic_info TypeInfo

Add the missing .class_size definition to the arm_gic_info TypeInfo.
This fixes the memory corruption and possible segfault that otherwise
results when the class struct is allocated at too small a size and
the class init function writes off the end of it.

Reported-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/arm_gic.c