/[gentoo-x86]/x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch
Gentoo

Contents of /x11-base/xorg-server/files/xorg-server-1.12-xf86edidmodes-array-bounds.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 7 09:40:46 2013 UTC (21 months, 3 weeks ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Raise resourceproto dependency, bug #450396. Drop some old versions.

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 Patch by Torsten Kaiser <x11@ariolc.dyndns.org>
2 taken from https://bugs.freedesktop.org/show_bug.cgi?id=45623
3
4 diff -ur a/hw/xfree86/modes/xf86EdidModes.c b/hw/xfree86/modes/xf86EdidModes.c
5 --- a/hw/xfree86/modes/xf86EdidModes.c 2012-05-17 19:09:03.000000000 +0200
6 +++ b/hw/xfree86/modes/xf86EdidModes.c 2012-05-30 01:27:06.000000000 +0200
7 @@ -723,7 +723,13 @@
8 1920, 1200, 75, 0}, {
9 1920, 1200, 85, 0}, {
10 1920, 1440, 60, 0}, {
11 -1920, 1440, 75, 0},};
12 +1920, 1440, 75, 0},
13 + /* fill up last byte */
14 + { 0,0,0,0 },
15 + { 0,0,0,0 },
16 + { 0,0,0,0 },
17 + { 0,0,0,0 },
18 +};
19
20 static DisplayModePtr
21 DDCModesFromEstIII(unsigned char *est)
22 @@ -732,10 +738,11 @@
23 int i, j, m;
24
25 for (i = 0; i < 6; i++) {
26 - for (j = 7; j > 0; j--) {
27 + for (j = 7; j >= 0; j--) {
28 if (est[i] & (1 << j)) {
29 m = (i * 8) + (7 - j);
30 - modes = xf86ModesAdd(modes,
31 + if (EstIIIModes[m].w)
32 + modes = xf86ModesAdd(modes,
33 FindDMTMode(EstIIIModes[m].w,
34 EstIIIModes[m].h,
35 EstIIIModes[m].r,

  ViewVC Help
Powered by ViewVC 1.1.20