• 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
..
config Loading commit data...
extras Loading commit data...
include Loading commit data...
lib Loading commit data...
programs Loading commit data...
.gitignore Loading commit data...
Imakefile Loading commit data...
Makefile Loading commit data...
x-indent-all.sh Loading commit data...
x-indent.sh Loading commit data...