1 |
dberkholz 08/02/01 21:47:20 |
2 |
|
3 |
Added: |
4 |
1.4-0009-Don-t-break-grab-and-focus-state-for-a-window-when-r.patch |
5 |
1.4-0008-CVE-2007-6429-Always-test-for-size-offset-wrapping.patch |
6 |
Log: |
7 |
(#208343) Another security bump, with two fixes. CVE-2007-6429: The old fix for the MIT_SHM patch failed to check for the security issue in all cases. CVE-2007-3920: The second fix is primarily for compiz users. There was a patch in compiz for this but it was again an incomplete fix, because it assumed the problem could only be caused by a specifically named executable. |
8 |
(Portage version: 2.1.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 x11-base/xorg-server/files/1.4-0009-Don-t-break-grab-and-focus-state-for-a-window-when-r.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/files/1.4-0009-Don-t-break-grab-and-focus-state-for-a-window-when-r.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/files/1.4-0009-Don-t-break-grab-and-focus-state-for-a-window-when-r.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 1.4-0009-Don-t-break-grab-and-focus-state-for-a-window-when-r.patch |
17 |
=================================================================== |
18 |
From a6a7fadbb03ee99312dfb15ac478ab3c414c1c0b Mon Sep 17 00:00:00 2001 |
19 |
From: =?utf-8?q?Kristian=20H=C3=B8gsberg?= <krh@××××××.com> |
20 |
Date: Wed, 16 Jan 2008 20:24:11 -0500 |
21 |
Subject: [PATCH] Don't break grab and focus state for a window when redirecting it. |
22 |
|
23 |
Composite uses an unmap/map cycle to trigger backing pixmap allocation |
24 |
and cliprect recomputation when a window is redirected or unredirected. |
25 |
To avoid protocol visible side effects, map and unmap events are |
26 |
disabled temporarily. However, when a window is unmapped it is also |
27 |
removed from grabs and loses focus, but these state changes are not |
28 |
disabled. |
29 |
|
30 |
This change supresses the unmap side effects during the composite |
31 |
unmap/map cycle and fixes this bug: |
32 |
|
33 |
http://bugzilla.gnome.org/show_bug.cgi?id=488264 |
34 |
|
35 |
where compiz would cause gnome-screensaver to lose its grab when |
36 |
compiz unredirects the fullscreen lock window. |
37 |
--- |
38 |
dix/window.c | 3 ++- |
39 |
1 files changed, 2 insertions(+), 1 deletions(-) |
40 |
|
41 |
diff --git a/dix/window.c b/dix/window.c |
42 |
index 33cf76b..1ccf126 100644 |
43 |
--- a/dix/window.c |
44 |
+++ b/dix/window.c |
45 |
@@ -2993,7 +2993,8 @@ UnrealizeTree( |
46 |
} |
47 |
#endif |
48 |
(* Unrealize)(pChild); |
49 |
- DeleteWindowFromAnyEvents(pChild, FALSE); |
50 |
+ if (MapUnmapEventsEnabled(pWin)) |
51 |
+ DeleteWindowFromAnyEvents(pChild, FALSE); |
52 |
if (pChild->viewable) |
53 |
{ |
54 |
#ifdef DO_SAVE_UNDERS |
55 |
-- |
56 |
1.5.3.8 |
57 |
|
58 |
|
59 |
|
60 |
|
61 |
1.1 x11-base/xorg-server/files/1.4-0008-CVE-2007-6429-Always-test-for-size-offset-wrapping.patch |
62 |
|
63 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/files/1.4-0008-CVE-2007-6429-Always-test-for-size-offset-wrapping.patch?rev=1.1&view=markup |
64 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/files/1.4-0008-CVE-2007-6429-Always-test-for-size-offset-wrapping.patch?rev=1.1&content-type=text/plain |
65 |
|
66 |
Index: 1.4-0008-CVE-2007-6429-Always-test-for-size-offset-wrapping.patch |
67 |
=================================================================== |
68 |
From be6c17fcf9efebc0bbcc3d9a25f8c5a2450c2161 Mon Sep 17 00:00:00 2001 |
69 |
From: Matthias Hopf <mhopf@××××.de> |
70 |
Date: Mon, 21 Jan 2008 16:13:21 +0100 |
71 |
Subject: [PATCH] CVE-2007-6429: Always test for size+offset wrapping. |
72 |
|
73 |
--- |
74 |
Xext/shm.c | 12 ++++++------ |
75 |
1 files changed, 6 insertions(+), 6 deletions(-) |
76 |
|
77 |
diff --git a/Xext/shm.c b/Xext/shm.c |
78 |
index e46f6fc..a7a1ecf 100644 |
79 |
--- a/Xext/shm.c |
80 |
+++ b/Xext/shm.c |
81 |
@@ -799,10 +799,10 @@ CreatePmap: |
82 |
if (sizeof(size) == 4 && BitsPerPixel(depth) > 8) { |
83 |
if (size < width * height) |
84 |
return BadAlloc; |
85 |
- /* thankfully, offset is unsigned */ |
86 |
- if (stuff->offset + size < size) |
87 |
- return BadAlloc; |
88 |
} |
89 |
+ /* thankfully, offset is unsigned */ |
90 |
+ if (stuff->offset + size < size) |
91 |
+ return BadAlloc; |
92 |
|
93 |
VERIFY_SHMSIZE(shmdesc, stuff->offset, size, client); |
94 |
|
95 |
@@ -1144,10 +1144,10 @@ CreatePmap: |
96 |
if (sizeof(size) == 4 && BitsPerPixel(depth) > 8) { |
97 |
if (size < width * height) |
98 |
return BadAlloc; |
99 |
- /* thankfully, offset is unsigned */ |
100 |
- if (stuff->offset + size < size) |
101 |
- return BadAlloc; |
102 |
} |
103 |
+ /* thankfully, offset is unsigned */ |
104 |
+ if (stuff->offset + size < size) |
105 |
+ return BadAlloc; |
106 |
|
107 |
VERIFY_SHMSIZE(shmdesc, stuff->offset, size, client); |
108 |
pMap = (*shmFuncs[pDraw->pScreen->myNum]->CreatePixmap)( |
109 |
-- |
110 |
1.5.3.8 |
111 |
|
112 |
|
113 |
|
114 |
|
115 |
-- |
116 |
gentoo-commits@l.g.o mailing list |