Peter Maydell bba4e1b591 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>
2016-09-13 08:01:39 +02:00
..
2016-05-18 15:04:27 +03:00
2016-02-04 17:01:04 +00:00
2016-07-11 10:40:29 +01:00
2016-06-10 11:13:15 +02:00
2016-02-04 17:01:04 +00:00
2016-03-08 12:20:11 +01:00
2016-06-03 08:23:26 +02:00
2016-02-04 17:01:04 +00:00
2016-06-03 08:23:26 +02:00
2016-03-01 08:19:07 +01:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-23 12:43:05 +00:00
2016-08-30 11:20:24 +01:00
2016-02-04 17:01:04 +00:00