public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-base/xorg-server/files: xorg-server-1.12-xf86edidmodes-array-bounds.patch
@ 2012-05-29 23:46 Chi-Thanh Christopher Nguyen (chithanh)
  0 siblings, 0 replies; only message in thread
From: Chi-Thanh Christopher Nguyen (chithanh) @ 2012-05-29 23:46 UTC (permalink / raw
  To: gentoo-commits

chithanh    12/05/29 23:46:01

  Added:                xorg-server-1.12-xf86edidmodes-array-bounds.patch
  Log:
  Version bump. Add patch for bug #402285.
  
  (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch?rev=1.1&content-type=text/plain

Index: xorg-server-1.12-xf86edidmodes-array-bounds.patch
===================================================================
Patch by Torsten Kaiser <x11@ariolc.dyndns.org>
taken from https://bugs.freedesktop.org/show_bug.cgi?id=45623

diff -ur a/hw/xfree86/modes/xf86EdidModes.c b/hw/xfree86/modes/xf86EdidModes.c
--- a/hw/xfree86/modes/xf86EdidModes.c	2012-05-17 19:09:03.000000000 +0200
+++ b/hw/xfree86/modes/xf86EdidModes.c	2012-05-30 01:27:06.000000000 +0200
@@ -723,7 +723,13 @@
     1920, 1200, 75, 0}, {
     1920, 1200, 85, 0}, {
     1920, 1440, 60, 0}, {
-1920, 1440, 75, 0},};
+1920, 1440, 75, 0},
+    /* fill up last byte */
+    { 0,0,0,0 },
+    { 0,0,0,0 },
+    { 0,0,0,0 },
+    { 0,0,0,0 },
+};
 
 static DisplayModePtr
 DDCModesFromEstIII(unsigned char *est)
@@ -732,10 +738,11 @@
     int i, j, m;
 
     for (i = 0; i < 6; i++) {
-        for (j = 7; j > 0; j--) {
+        for (j = 7; j >= 0; j--) {
             if (est[i] & (1 << j)) {
                 m = (i * 8) + (7 - j);
-                modes = xf86ModesAdd(modes,
+                if (EstIIIModes[m].w)
+                        modes = xf86ModesAdd(modes,
                                      FindDMTMode(EstIIIModes[m].w,
                                                  EstIIIModes[m].h,
                                                  EstIIIModes[m].r,






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-29 23:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 23:46 [gentoo-commits] gentoo-x86 commit in x11-base/xorg-server/files: xorg-server-1.12-xf86edidmodes-array-bounds.patch Chi-Thanh Christopher Nguyen (chithanh)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox