1 |
ssuominen 12/03/05 09:42:47 |
2 |
|
3 |
Added: libXaw3d-1.6.1-use_after_free.patch |
4 |
Log: |
5 |
Fix use after free in DestroyAllIM (causing segmentation fault in app-text/gv exit) wrt #406487 by Matt Turner |
6 |
|
7 |
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-libs/libXaw3d/files/libXaw3d-1.6.1-use_after_free.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/libXaw3d/files/libXaw3d-1.6.1-use_after_free.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/libXaw3d/files/libXaw3d-1.6.1-use_after_free.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: libXaw3d-1.6.1-use_after_free.patch |
16 |
=================================================================== |
17 |
From f435c05c64bc20557d901170b76f6bce8506ed48 Mon Sep 17 00:00:00 2001 |
18 |
From: Matt Turner <mattst88@×××××.com> |
19 |
Date: Thu, 1 Mar 2012 16:48:23 -0500 |
20 |
Subject: [PATCH libXaw3d] Fix use-after-free in DestroyAllIM |
21 |
|
22 |
Fixes segmentation fault when closing gv. |
23 |
|
24 |
Found at http://gitorious.org/xaw3d/xaw3d/commit/23b3ca50395f180cba4a923eb8827dcc961629da |
25 |
|
26 |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=406487 |
27 |
Signed-off-by: Matt Turner <mattst88@×××××.com> |
28 |
--- |
29 |
Original author of this patch is unknown. If you know, let me know and |
30 |
I'll fix the attribution. |
31 |
|
32 |
src/XawIm.c | 2 +- |
33 |
1 files changed, 1 insertions(+), 1 deletions(-) |
34 |
|
35 |
diff --git a/src/XawIm.c b/src/XawIm.c |
36 |
index 82a94b1..00562b5 100644 |
37 |
--- a/src/XawIm.c |
38 |
+++ b/src/XawIm.c |
39 |
@@ -320,12 +320,12 @@ DestroyAllIM(XawVendorShellExtPart *ve) |
40 |
/* |
41 |
* Close Input Method |
42 |
*/ |
43 |
- CloseIM(ve); |
44 |
if (!XFindContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext, |
45 |
(XPointer*)&contextErrData)) { |
46 |
if (contextErrData) XtFree((char *)contextErrData); |
47 |
} |
48 |
XDeleteContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext); |
49 |
+ CloseIM(ve); |
50 |
ve->im.xim = NULL; |
51 |
|
52 |
/* |
53 |
-- |
54 |
1.7.3.4 |