[mutter/wip/wayland-kms: 26/39] MonitorXrandr: Fix segv when accessing possible_clones
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/wayland-kms: 26/39] MonitorXrandr: Fix segv when accessing possible_clones
- Date: Fri, 23 Aug 2013 16:18:30 +0000 (UTC)
commit 5de346bfef73c3dc60218a2f5b892aa2de33d92e
Author: Colin Guthrie <colin mageia org>
Date: Thu Aug 22 17:39:56 2013 +0100
MonitorXrandr: Fix segv when accessing possible_clones
This code requires a double pass and the segv happens later
when trying to iterate over the array.
https://bugzilla.gnome.org/show_bug.cgi?id=706598
src/core/monitor-xrandr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/monitor-xrandr.c b/src/core/monitor-xrandr.c
index 1a66c13..0a7dc0b 100644
--- a/src/core/monitor-xrandr.c
+++ b/src/core/monitor-xrandr.c
@@ -532,7 +532,7 @@ meta_monitor_manager_xrandr_read_current (MetaMonitorManager *manager)
*/
for (j = 0; j < (unsigned)output->nclone; j++)
{
- meta_output->possible_clones = GINT_TO_POINTER (output->clones[j]);
+ meta_output->possible_clones[j] = GINT_TO_POINTER (output->clones[j]);
}
meta_output->is_primary = ((XID)meta_output->output_id == primary_output);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]