[xorg-x11-server] whoops

Adam Jackson ajax at fedoraproject.org
Mon Sep 13 17:03:49 UTC 2010


commit 3b9af4875bcf2fda6713c22381e233b0b9fb67f1
Author: Adam Jackson <ajax at redhat.com>
Date:   Mon Sep 13 13:03:41 2010 -0400

    whoops

 xserver-1.9.0-vbe-panelid-sanity.patch |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/xserver-1.9.0-vbe-panelid-sanity.patch b/xserver-1.9.0-vbe-panelid-sanity.patch
new file mode 100644
index 0000000..bc12359
--- /dev/null
+++ b/xserver-1.9.0-vbe-panelid-sanity.patch
@@ -0,0 +1,29 @@
+From 6f9b0496f919178720a7f99049d8ab9ff16d3575 Mon Sep 17 00:00:00 2001
+From: Adam Jackson <ajax at redhat.com>
+Date: Mon, 13 Sep 2010 11:34:28 -0400
+Subject: [PATCH] vbe: Refuse to believe tiny (or negative) panel sizes from PanelID
+
+Signed-off-by: Adam Jackson <ajax at redhat.com>
+---
+ hw/xfree86/vbe/vbe.c |    5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/hw/xfree86/vbe/vbe.c b/hw/xfree86/vbe/vbe.c
+index 0b34648..1defd9a 100644
+--- a/hw/xfree86/vbe/vbe.c
++++ b/hw/xfree86/vbe/vbe.c
+@@ -1088,6 +1088,11 @@ VBEInterpretPanelID(int scrnIndex, struct vbePanelID *data)
+     if (pScrn->monitor->nHsync || pScrn->monitor->nVrefresh)
+ 	return;
+ 
++    if (data->hsize < 320 || data->vsize < 240) {
++	xf86DrvMsg(scrnIndex, X_INFO, "... which I refuse to believe\n");
++	return;
++    }
++
+     mode = xf86CVTMode(data->hsize, data->vsize, PANEL_HZ, 1, 0);
+ 
+     pScrn->monitor->nHsync = 1;
+-- 
+1.7.2.2
+


More information about the scm-commits mailing list