summaryrefslogtreecommitdiff
path: root/src/locking.h
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2013-05-23 20:39:46 +0200
committerJulien Cristau <jcristau@debian.org>2013-05-23 20:39:46 +0200
commita3bdd2b090915fe0163b062f0e6576fe05dd332e (patch)
tree83ec620f37a2afed8fa24b592a8294453b34b95c /src/locking.h
parent7e30056e78e4b7979ff47f102e00327617266019 (diff)
xkb: fix off-by-one in _XkbReadGetNamesReply and _XkbReadVirtualModMap
The size of the arrays is max_key_code + 1. This makes these functions consistent with the other checks added for CVE-2013-1997. Also check the XkbGetNames reply when names->keys was just allocated. Signed-off-by: Julien Cristau <jcristau@debian.org> Tested-by: Colin Walters <walters@verbum.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/locking.h')
0 files changed, 0 insertions, 0 deletions