diff options
author | Julien Cristau <jcristau@debian.org> | 2013-05-23 20:39:46 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2013-05-23 20:39:46 +0200 |
commit | a3bdd2b090915fe0163b062f0e6576fe05dd332e (patch) | |
tree | 83ec620f37a2afed8fa24b592a8294453b34b95c /src/Font.c | |
parent | 7e30056e78e4b7979ff47f102e00327617266019 (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/Font.c')
0 files changed, 0 insertions, 0 deletions