• Ulrich Sibiller's avatar
    Fix crash due to uninitialized VModMap fields. · a4fad8f5
    Ulrich Sibiller authored
    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: 's avatarTomas Janousek <tomi@nomi.cz>
    Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
    a4fad8f5
Name
Last commit
Last update
..
GL Loading commit data...
Xext Loading commit data...
Xi Loading commit data...
composite Loading commit data...
damageext Loading commit data...
dbe Loading commit data...
dix Loading commit data...
fb Loading commit data...
hw/nxagent Loading commit data...
include Loading commit data...
mi Loading commit data...
miext Loading commit data...
os Loading commit data...
randr Loading commit data...
record Loading commit data...
render Loading commit data...
xfixes Loading commit data...
xkb Loading commit data...
.gitignore Loading commit data...
Imakefile Loading commit data...
code-versions.txt Loading commit data...
fix-miregion Loading commit data...
fix-miregion-private Loading commit data...
fix-region Loading commit data...