AW: Yet another leak in Xlib

Alan Coopersmith alan.coopersmith at oracle.com
Thu Nov 3 21:50:09 UTC 2022


Done: https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/166

	-alan-

On 10/18/22 02:57, Walter Harms wrote:
> will sombody close the hole in the documentation ?
> ________________________________________
> Von: xorg-devel <xorg-devel-bounces at lists.x.org> im Auftrag von Po Lu <luangruo at yahoo.com>
> Gesendet: Dienstag, 4. Oktober 2022 04:38
> An: Thomas Dickey
> Cc: xorg-devel at lists.x.org
> Betreff: Re: Yet another leak in Xlib
> 
> Thomas Dickey <dickey at his.com> writes:
> 
>> looks okay reading the library code (src/xlibi18n/XDefaultIMIF.c, _CloseIM).
>>
>> xterm doesn't free that 'xim' value (and the XCloseIM manual page doesn't
>> say who's responsible for that -- though it's possible that some other
>> application developer read the library source code and is freeing it).
> 
> XCloseIM (in IMWrap.c) frees the XIM value itself after calling close to
> deinitialize the input method.
> 
> So I think the patch should be fine, and I've been running it for a
> while with no ill effect.  Could it be installed?
> 
> Thanks.


-- 
         -Alan Coopersmith-                 alan.coopersmith at oracle.com
          Oracle Solaris Engineering - https://blogs.oracle.com/solaris


More information about the xorg-devel mailing list