summaryrefslogtreecommitdiff
path: root/Xi/setfocus.h
diff options
context:
space:
mode:
authorTomas Janousek <tomi@nomi.cz>2009-05-20 15:03:01 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-21 10:42:35 +1000
commit81b3b0cce088866dc3cda099d7c8d6655849fd43 (patch)
tree4aa3513d9e10d2be3aba7495b9ff8fcfa767dd88 /Xi/setfocus.h
parentc2785ae7eb6197bbfc75e92e99fffbb8ad8064da (diff)
Bug #6428, #16458, #21464: Fix crash due to uninitialized VModMap fields.
In ProcXkbGetKbdByName, mrep.firstVModMapKey, .nVModMapKeys and .totalVModMapKeys were not initialized, contained random values and caused accesses to unallocated and later modified memory, causing XkbSizeVirtualModMap and XkbWriteVirtualModMap to see different number of nonzero values, resulting in writes past the end of an array in XkbSendMap. This patch initializes those values sensibly and reverts commits 5c0a2088 and 6dd4fc46, which have been plain non-sense. Signed-off-by: Tomas Janousek <tomi@nomi.cz> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/setfocus.h')
0 files changed, 0 insertions, 0 deletions