Skip to content

locale1: fix use-after-free in xkb_keymap creation

Vlad Zahorodnii requested to merge work/cherry-pick-f70bda9f into Plasma/5.27

qPrintable creates temporary objects that are destroyed before xkb_keymap_new_from_names is called. It's highly likely that the data we pass to xkbcommon will be overwritten by random data by that point.

Fix that by storing values as QByteArrays just like Xkb::loadKeymapFromConfig does.

(cherry picked from commit f70bda9f)

Merge request reports

Loading