]> git.proxmox.com Git - qemu.git/commit - qom/object.c
qom: Assert instance size in object_initialize_with_type()
authorAndreas Färber <afaerber@suse.de>
Fri, 30 Aug 2013 16:28:37 +0000 (18:28 +0200)
committerAndreas Färber <afaerber@suse.de>
Fri, 30 Aug 2013 19:15:44 +0000 (21:15 +0200)
commit5b9237f67c499fa4e20bb9bd29c7ce54afe79cb7
tree75051804a1fb76cee27d23e437ad49a30228323c
parent213f0c4f619dda7a56612353009e6f30d3348206
qom: Assert instance size in object_initialize_with_type()

This catches objects initializing beyond allocated memory, e.g.,
when subtypes get extended with instance state of their own.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/qom/object.h
qom/object.c