diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-12-17 23:58:16 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2018-12-17 23:58:16 +0100 |
commit | a4fad8f58e8c7f601f70801016861f970ab05827 (patch) | |
tree | 8918e0cd97d4b570853c7eb6cfb5c68ddae37cc1 /nx-X11/programs/Xserver/Xi/Imakefile | |
parent | 989398afe84d6ceab891926d59aceb8aa1067785 (diff) | |
download | nx-libs-a4fad8f58e8c7f601f70801016861f970ab05827.tar.gz nx-libs-a4fad8f58e8c7f601f70801016861f970ab05827.tar.bz2 nx-libs-a4fad8f58e8c7f601f70801016861f970ab05827.zip |
Fix crash due to uninitialized VModMap fields.
Backport of
commit 81b3b0cce088866dc3cda099d7c8d6655849fd43
Author: Tomas Janousek <tomi@nomi.cz>
Date: Wed May 20 15:03:01 2009 +0200
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 'nx-X11/programs/Xserver/Xi/Imakefile')
0 files changed, 0 insertions, 0 deletions