bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Leo Prikler
Subject: bug#42694: 26.3; Emacs crashes when linked against newer libx11
Date: Mon, 03 Aug 2020 11:31:49 +0200
User-agent: Evolution 3.34.2

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.

Regards, 
Leo

Attachment: emacs-ignore-empty-xim-styles.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]