summaryrefslogtreecommitdiffstats
path: root/ui/qemu-pixman.c
diff options
context:
space:
mode:
authorKirill Batuzov <batuzovk@ispras.ru>2014-04-24 18:15:58 +0400
committerGerd Hoffmann <kraxel@redhat.com>2014-05-26 08:41:02 +0200
commitafff2b15e89ac81c113f2ebfd729aaa02b40edb6 (patch)
tree6da59d3248b8aabc4babee0a0d5563ce260aadd9 /ui/qemu-pixman.c
parent178ac111bca16c08a79b2609ebdc75197bea976a (diff)
downloadhqemu-afff2b15e89ac81c113f2ebfd729aaa02b40edb6.zip
hqemu-afff2b15e89ac81c113f2ebfd729aaa02b40edb6.tar.gz
console: Abort on property access errors
All defined properties of QemuConsole are mandatory and no access to them should fail. Nevertheless not checking returned errors is bad because in case of unexpected failure it will hide the bug and cause a memory leak. Abort in case of unexpected property access errors. This change exposed a bug where an attempt was made to write to a read-only property "head". Set "head" property's value at creation time and do not attempt to change it later. This fixes the bug mentioned above. Signed-off-by: Kirill Batuzov <batuzovk@ispras.ru> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/qemu-pixman.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud