package/cog: fix segfaults on null xkb_data keymap/state
authorJames Hilliard <james.hilliard1@gmail.com>
Fri, 27 Mar 2020 18:26:39 +0000 (12:26 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 29 Mar 2020 19:52:48 +0000 (21:52 +0200)
commit75fbc58f3f485e3e13d741e934fb5c5f8989006c
tree85164931969c3305db4b81828c49f9bc2b78d36a
parent4ef8c5d3dd8194059ca6907427dcdad2fab5d81d
package/cog: fix segfaults on null xkb_data keymap/state

Fixes:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  xkb_state_key_get_layout (state=state@entry=0x0, kc=kc@entry=50) at ../src/state.c:217

Program terminated with signal SIGSEGV, Segmentation fault.
#0  XkbKey (kc=kc@entry=45, keymap=0x0) at ../src/keymap.h:430

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/cog/0002-fdo-ensure-xkb_data.state-is-not-null-before-calling.patch [new file with mode: 0644]
package/cog/0003-fdo-ensure-xkb_data.keymap-is-not-null-before-callin.patch [new file with mode: 0644]