Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Aug 2020 07:58:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 248549] x11/libX11-1.6.10,1   X Input Method connection is broken
Message-ID:  <bug-248549-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248549

            Bug ID: 248549
           Summary: x11/libX11-1.6.10,1   X Input Method connection is
                    broken
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ohki@gssm.otsuka.tsukuba.ac.jp

>From libX11-1.6.10,
some X Input Method client can not connect to Input Method server.

I suspect changes of module/im/ximcp/imRmAttr.c caused the problem.
attached diff fixes the problem.

--- modules/im/ximcp/imRmAttr.c.orig    2020-08-09 16:29:11.043873000 +0900
+++ modules/im/ximcp/imRmAttr.c 2020-08-09 16:30:33.335757000 +0900
@@ -1407,8 +1407,8 @@
     *names_len =3D 0;
     while (total > min_len) {
        len =3D attr[2];
-       if (len >=3D (total - min_len)) {
-           return 0;
+       if (len > (total - min_len)) {
+           return 0;   /* XXX */
        }
        *names_len +=3D (len + 1);
        len +=3D (min_len + XIM_PAD(len + 2));

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248549-7788>