[Buildroot] [PATCH 1/1] package/cog: fix segfaults on null xkb_data keymap/state

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Mar 29 19:49:39 UTC 2020


On Fri, 27 Mar 2020 12:26:39 -0600
James Hilliard <james.hilliard1 at gmail.com> wrote:

> Fixes:
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  xkb_state_key_get_layout (state=state at entry=0x0, kc=kc at entry=50) at ../src/state.c:217
> 
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  XkbKey (kc=kc at entry=45, keymap=0x0) at ../src/keymap.h:430
> 
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
>  ...ata.state-is-not-null-before-calling.patch | 30 +++++++++++++++++++
>  ...ata.keymap-is-not-null-before-callin.patch | 30 +++++++++++++++++++
>  2 files changed, 60 insertions(+)
>  create mode 100644 package/cog/0002-fdo-ensure-xkb_data.state-is-not-null-before-calling.patch
>  create mode 100644 package/cog/0003-fdo-ensure-xkb_data.keymap-is-not-null-before-callin.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list