Peter Maydell 217bfb445b hw/arm_gic.c: Ignore attempts to complete nonexistent IRQs
Ignore attempts to complete non-existent IRQs; this fixes a buffer
overrun if the guest writes a bad value to the GICC_EOIR register.
(This case is UNPREDICTABLE so ignoring it is a valid choice.)
Note that doing nothing if the guest writes 1023 to this register
is not in fact a change in behaviour: the old code would also
always do nothing in this case but in a non-obvious way.
(The buffer overrun was noted by Coverity, see bug 887883.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
2011-12-05 21:38:56 +01:00
..
2011-07-23 11:26:12 -05:00
2011-09-23 13:42:33 -05:00
2011-11-28 15:38:42 +02:00
2011-07-23 11:26:12 -05:00
2011-09-04 17:46:50 +03:00
2011-08-22 10:20:10 -05:00
2011-10-26 14:14:19 +01:00
2011-11-24 18:32:00 +02:00
2011-08-22 10:17:44 -05:00
2011-07-24 14:48:57 +00:00
2011-07-23 11:26:12 -05:00
2011-09-23 10:55:33 -05:00
2011-10-17 15:59:18 +02:00
2011-10-09 19:04:16 +04:00
2011-10-06 09:48:07 +02:00
2011-10-17 15:59:18 +02:00
2011-07-23 11:26:12 -05:00
2011-09-04 17:46:51 +03:00
2011-11-01 16:52:07 -05:00
2011-11-01 16:52:07 -05:00
2011-08-08 10:22:29 -05:00
2011-10-21 17:34:13 +02:00
2011-10-11 15:57:10 +02:00
2011-09-10 14:49:51 +00:00
2011-09-25 14:58:36 +03:00
2011-10-16 11:11:55 +00:00
2011-11-24 18:31:59 +02:00
2011-11-02 07:51:58 -05:00
2011-10-16 11:10:48 +00:00
2011-09-23 11:51:05 -05:00
2011-09-23 11:51:05 -05:00
2011-10-16 11:10:48 +00:00
2011-11-24 18:31:54 +02:00
2011-09-15 16:39:32 -03:00
2011-09-04 17:46:51 +03:00
2011-10-21 18:14:29 +02:00
2011-10-21 18:14:29 +02:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-11-28 15:38:42 +02:00
2011-10-03 12:44:22 +02:00
2011-11-24 18:31:59 +02:00
2011-11-24 18:31:59 +02:00
2011-07-12 20:00:28 +00:00
2011-08-08 10:22:30 -05:00
2011-11-14 03:19:18 +01:00
2011-08-08 10:22:29 -05:00
2011-11-28 15:38:39 +02:00
2011-11-28 15:38:47 +02:00
2011-11-28 15:38:41 +02:00
2011-11-28 15:38:47 +02:00
2011-11-28 15:38:41 +02:00
2011-11-28 15:38:46 +02:00
2011-10-10 15:29:28 +02:00
2011-11-24 18:31:54 +02:00
2011-11-24 18:31:54 +02:00
2011-10-23 14:05:46 +00:00
2011-11-24 18:32:03 +02:00
2011-09-21 14:32:20 +02:00
2011-10-27 11:48:47 -02:00
2011-10-27 11:48:47 -02:00
2011-08-22 10:22:03 -05:00
2011-08-22 10:22:03 -05:00
2011-08-24 15:52:54 +03:00
2011-09-25 14:58:37 +03:00
2011-11-01 16:52:09 -05:00
2011-11-01 16:52:09 -05:00
2011-11-01 16:52:09 -05:00
2011-10-06 09:48:09 +02:00
2011-11-24 18:32:03 +02:00
2011-08-22 10:47:42 -05:00
2011-10-06 09:48:09 +02:00
2011-10-17 15:59:16 +02:00
2011-10-30 20:03:26 +01:00
2011-10-06 09:48:09 +02:00
2011-11-24 18:32:03 +02:00
2011-11-01 16:52:05 -05:00
2011-11-24 18:31:59 +02:00
2011-11-24 18:31:59 +02:00
2011-10-16 11:11:51 +00:00
2011-11-10 12:29:50 +00:00
2011-10-28 19:25:51 +02:00
2011-09-07 09:20:09 +02:00
2011-11-07 10:57:37 -06:00
2011-11-01 12:11:53 +01:00
2011-11-24 18:31:59 +02:00
2011-11-22 10:33:30 +01:00
2011-11-18 13:57:16 +01:00
2011-06-07 13:52:30 -05:00
2011-11-24 18:32:03 +02:00
2011-11-24 18:32:03 +02:00
2011-11-24 18:32:03 +02:00
2011-11-24 18:32:03 +02:00
2011-10-17 15:59:18 +02:00
2011-07-23 11:26:12 -05:00
2011-10-28 19:25:51 +02:00
2011-10-31 04:53:01 +01:00
2011-07-23 11:26:12 -05:00
2011-07-23 11:26:12 -05:00
2011-07-23 11:26:12 -05:00
2011-10-17 15:59:18 +02:00
2011-10-17 15:59:18 +02:00
2011-10-17 15:59:18 +02:00
2011-11-24 18:31:54 +02:00
2011-09-07 09:58:26 +02:00
2011-09-07 09:58:26 +02:00
2011-11-23 16:24:06 +01:00
2011-11-23 16:24:05 +01:00
2011-08-04 15:51:22 +02:00
2011-09-07 09:58:27 +02:00
2011-08-04 15:51:22 +02:00
2011-10-13 12:58:51 +02:00
2011-10-13 12:58:51 +02:00
2011-11-24 18:31:54 +02:00
2011-10-27 11:48:47 -02:00
2011-12-05 14:51:34 +01:00
2011-09-21 10:49:16 +01:00
2011-07-26 06:43:11 +02:00