aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2019-06-24 05:02:00 -0400
committerEduardo Habkost <ehabkost@redhat.com>2019-07-05 17:08:03 -0300
commitfc3b77e20d002fb434be726f2328a17fd5edecb7 (patch)
tree306bae2111f4997354cccb2d746872a72c3db23c /qapi
parentd65af288a84d8bf8c27e55d45545f52f016c08a7 (diff)
pc: fix possible NULL pointer dereference in pc_machine_get_device_memory_region_size()
QEMU will crash when device-memory-region-size property is read if ms->device_memory wasn't initialized yet. Crash can be reproduced with: $QEMU -preconfig -qmp unix:qmp_socket,server,nowait & ./scripts/qmp/qom-get -s qmp_socket /machine.device-memory-region-size Instead of crashing return 0 if ms->device_memory hasn't been initialized. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20190624090200.5383-1-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions