Skip to content
Commit 2d09d796 authored by Aleksei Bavshin's avatar Aleksei Bavshin Committed by Vlad Zahorodnii
Browse files

locale1: fix use-after-free in xkb_keymap creation

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)
parent ed916ff2
Pipeline #423739 passed with stage
in 9 minutes and 9 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment