From daichi@FreeBSD.org  Thu Oct  9 04:01:25 2003
Return-Path: <daichi@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id C151A16A4B3; Thu,  9 Oct 2003 04:01:25 -0700 (PDT)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 497BF43F75; Thu,  9 Oct 2003 04:01:25 -0700 (PDT)
	(envelope-from daichi@FreeBSD.org)
Received: from freefall.freebsd.org (daichi@localhost [127.0.0.1])
	by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h99B1PFY094737;
	Thu, 9 Oct 2003 04:01:25 -0700 (PDT)
	(envelope-from daichi@freefall.freebsd.org)
Received: (from daichi@localhost)
	by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h99B1PjJ094736;
	Thu, 9 Oct 2003 04:01:25 -0700 (PDT)
	(envelope-from daichi)
Message-Id: <200310091101.h99B1PjJ094736@freefall.freebsd.org>
Date: Thu, 9 Oct 2003 04:01:25 -0700 (PDT)
From: Daichi GOTO <daichi@freebsd.org>
Reply-To: Daichi GOTO <daichi@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: anholt@freebsd.org, nork@freebsd.org
Subject: [patch] x11/XFree86-4-libraries: bug fix about XIC treatment for XIM client(Xwnmo)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57795
>Category:       ports
>Synopsis:       [patch] x11/XFree86-4-libraries: bug fix about XIC treatment for XIM client(Xwnmo)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 09 04:10:13 PDT 2003
>Closed-Date:    Thu Oct 09 04:16:46 PDT 2003
>Last-Modified:  Thu Oct 09 04:16:46 PDT 2003
>Originator:     Daichi GOTO
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
ONGS Inc.
>Environment:
System: FreeBSD parancell.ongs.co.jp 5.1-RELEASE FreeBSD 5.1-RELEASE #2: Fri Sep 5 21:29:29 JST 2003 root@parancell.ongs.co.jp:/usr/obj/usr/src/sys/PARANCELL i386

>Description:
Norikatsu(nork@freebsd.org)'s linuxpluginwrapper-20031006 gets
crash using Xwnmo(XIM client) bacause of XFree86's bug about
XIC treatment.

>How-To-Repeat:
Use Mozill with Xwnmo and Norikatsu(nork@freebsd.org)'s linuxpluginwrapper-20031006.
It'll get crash.

>Fix:
add follow patch as x11/XFree86-4-libraries/files/patch-ICWrap.c

*** lib/X11/ICWrap.c.org     2003-08-30 16:16:24.000000000 +0900
--- lib/X11/ICWrap.c 2003-08-30 16:14:05.000000000 +0900
***************
*** 346,351 ****
--- 346,352 ----
  XSetICFocus(ic)
      XIC ic;
  {
+   if(ic!=NULL)
    if (ic->core.im)
        (*ic->methods->set_focus) (ic);
  }

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: daichi 
State-Changed-When: Thu Oct 9 04:15:57 PDT 2003 
State-Changed-Why:  
Duplicate of ports/57794 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57795 
>Unformatted:
