[PATCH libXaw3d] Fix use-after-free in DestroyAllIM
Jeremy Huddleston
jeremyhu at apple.com
Mon Mar 5 00:37:33 PST 2012
Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
On Mar 1, 2012, at 13:54, Matt Turner wrote:
> Fixes segmentation fault when closing gv.
>
> Found at http://gitorious.org/xaw3d/xaw3d/commit/23b3ca50395f180cba4a923eb8827dcc961629da
>
> Fixes: https://bugs.gentoo.org/show_bug.cgi?id=406487
> Signed-off-by: Matt Turner <mattst88 at gmail.com>
> ---
> Original author of this patch is unknown. If you know, let me know and
> I'll fix the attribution.
>
> src/XawIm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/XawIm.c b/src/XawIm.c
> index 82a94b1..00562b5 100644
> --- a/src/XawIm.c
> +++ b/src/XawIm.c
> @@ -320,12 +320,12 @@ DestroyAllIM(XawVendorShellExtPart *ve)
> /*
> * Close Input Method
> */
> - CloseIM(ve);
> if (!XFindContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext,
> (XPointer*)&contextErrData)) {
> if (contextErrData) XtFree((char *)contextErrData);
> }
> XDeleteContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext);
> + CloseIM(ve);
> ve->im.xim = NULL;
>
> /*
> --
> 1.7.3.4
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
More information about the xorg-devel
mailing list