Skip to contentSkip to conversation

spice: monitors_config: check pointer before dereferencing

GIT PULL Applied Gerd Hoffmann 2 participants 3 messages Apr 7, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

Simple spice bugfix for 2.0.

please pull,
Gerd

The following changes since commit 466e6e9d13d56bbb6da1d2396d7d6347df483af0:

target-i386: reorder fields in cpu/msr_hyperv_hypercall subsection (2014-04-05 10:49:05 +0100)

are available in the git repository at:

git://anongit.freedesktop.org/spice/qemu tags/pull-spice-6

for you to fetch changes up to dc491cfc14074064ed54a872b62cce6ca1330644:

spice: monitors_config: check pointer before dereferencing (2014-04-07 12:18:43 +0200)

----------------------------------------------------------------
spice: monitors_config: check pointer before dereferencing

----------------------------------------------------------------
Gerd Hoffmann (1):
spice: monitors_config: check pointer before dereferencing

 ui/spice-display.c | 4 ++++
 1 file changed, 4 insertions(+)
#1 lore raw
---
 ui/spice-display.c | 4 ++++
 1 file changed, 4 insertions(+)
ui/spice-display.c +4 -0
index e28698c..ce6b220 100644
@@ -549,6 +549,10 @@ static int interface_client_monitors_config(QXLInstance *sin,
     QemuUIInfo info;
     int rc;
 
+    if (!mc) {
+        return 1;
+    }
+
     /*
      * FIXME: multihead is tricky due to the way
      * spice has multihead implemented.
Signature · 1 line
1.8.3.1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 22 lines · Gerd Hoffmann

Hi,

Simple spice bugfix for 2.0.

please pull,
Gerd

The following changes since commit 466e6e9d13d56bbb6da1d2396d7d6347df483af0:

target-i386: reorder fields in cpu/msr_hyperv_hypercall subsection (2014-04-05 10:49:05 +0100)

are available in the git repository at:

git://anongit.freedesktop.org/spice/qemu tags/pull-spice-6

for you to fetch changes up to dc491cfc14074064ed54a872b62cce6ca1330644:

spice: monitors_config: check pointer before dereferencing (2014-04-07 12:18:43 +0200)

----------------------------------------------------------------
spice: monitors_config: check pointer before dereferencing

Quoted 7 lines

----------------------------------------------------------------
Gerd Hoffmann (1):
spice: monitors_config: check pointer before dereferencing

 ui/spice-display.c | 4 ++++
 1 file changed, 4 insertions(+)

Applied, thanks.

-- PMM