Subject: Fwd: Re: bug#42694: 26.3; Emacs crashes when linked against newer libx11

From: Leo Prikler <[email-masked]>
Date: Mon, 03 Aug 2020 16:51:14 +0200

It turns out, that this bug got fixed upstream independently using a
slightly different patch.

Subject: Re: bug#42694: 26.3; Emacs crashes when linked against newer libx11
From: Eli Zaretskii <[email-masked]>
To: Leo Prikler <[email-masked]>
Cc: [email-masked]
Date: Mon, 03 Aug 2020 17:40:41 +0300

> From: Leo Prikler <[email-masked]>
> Date: Mon, 03 Aug 2020 11:31:49 +0200
> 
> Two days ago, a patch was sent to Guix updating libx11 to a newer
> version in order to fix CVE-2020-14344.  This causes a segmentation
> fault in Emacs when trying to start an X window.  After invoking GDB, I
> found the offending line to be:
> 
>   /* Determine XIC style */
>   xic_style = best_xim_style (FRAME_X_XIM_STYLES (f));
> 
> For some reason, FRAME_X_XIM_STYLES (f) returns NULL here and
> best_xim_style fails when ARRAYELTS is called on it.  I've attached a
> patch, that checks for this case.

Thanks, this is bug#42676, which was solved yesterday.