summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Maydell2016-08-11 16:23:26 +0200
committerGerd Hoffmann2016-09-13 08:01:39 +0200
commitbba4e1b591531c087fce4ae501dc1ca299d8fb42 (patch)
tree574937d8c5459859b0708a5c68ff5be86df1a04f /scripts
parentMerge remote-tracking branch 'remotes/mcayland/tags/qemu-openbios-signed' int... (diff)
downloadqemu-bba4e1b591531c087fce4ae501dc1ca299d8fb42.tar.gz
qemu-bba4e1b591531c087fce4ae501dc1ca299d8fb42.tar.xz
qemu-bba4e1b591531c087fce4ae501dc1ca299d8fb42.zip
ui/curses.c: Ensure we don't read off the end of curses2qemu array
Coverity spots that there is no bounds check before we access the curses2qemu[] array. Add one, bringing this code path into line with the one that looks up entries in curses2keysym[]. In theory getch() shouldn't return out of range keycodes, but it's better not to assume this. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1470925407-23850-2-git-send-email-peter.maydell@linaro.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions