Aleksandar Markovic
cd3ed7db22
hw/misc: mips_itu: Fix 32/64 bit issue in a line involving shift operator
...
Fix 32/64 bit issue in a line involving shift operator. "1 << ..."
calculation of size is done as a 32-bit signed integer which may
then be unintentionally sign-extended into the 64-bit result. The
problem was discovered by Coverity (CID 1398648). Using "1ULL"
instead of "1" on the LHS of the shift fixes this problem.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2019-02-21 19:36:47 +01:00
..
2019-01-14 13:45:40 +00:00
2019-02-17 21:54:02 +11:00
2018-02-09 13:50:17 +01:00
2019-02-05 16:50:20 +01:00
2019-02-15 09:56:39 +00:00
2019-01-24 13:10:19 +01:00
2019-02-13 16:18:17 +08:00
2019-02-13 14:23:39 +01:00
2019-02-17 21:54:02 +11:00
2019-02-17 21:54:02 +11:00
2019-02-06 15:55:56 +01:00
2019-02-05 16:50:20 +01:00
2019-02-01 11:58:50 +01:00
2019-02-14 11:46:30 +01:00
2019-01-24 14:16:56 +00:00
2019-02-12 08:59:21 -08:00
2018-11-26 14:14:38 -02:00
2019-02-05 16:50:21 +01:00
2019-02-05 19:39:22 +00:00
2019-02-05 16:50:19 +01:00
2019-02-14 11:46:30 +01:00
2019-02-18 10:52:08 +11:00
2018-07-02 15:41:12 +02:00
2018-08-23 18:46:25 +02:00
2019-02-13 14:23:39 +01:00
2019-02-05 16:50:20 +01:00
2019-02-05 16:50:19 +01:00
2019-01-09 22:09:31 -02:00
2019-02-05 16:50:19 +01:00
2019-02-14 17:47:28 +01:00
2019-02-21 19:36:47 +01:00
2019-02-05 16:50:20 +01:00
2019-02-05 16:50:19 +01:00
2019-02-05 16:50:20 +01:00
2019-02-05 10:58:33 -05:00
2019-02-05 16:50:21 +01:00
2019-02-17 21:54:02 +11:00
2018-12-20 11:19:12 -05:00
2019-02-05 16:50:19 +01:00
2016-01-29 15:07:25 +00:00
2019-02-18 16:20:13 +00:00
2019-01-19 11:01:33 +02:00
2019-02-11 15:56:22 -08:00
2019-02-18 16:20:13 +00:00
2019-02-17 21:54:02 +11:00
2019-01-30 10:24:20 +01:00
2019-02-05 19:39:22 +00:00
2018-12-19 16:48:16 -05:00
2019-02-07 16:49:30 +00:00
2019-02-14 11:46:30 +01:00
2019-01-29 11:46:05 +00:00
2019-02-18 14:44:05 +01:00
2019-01-17 21:10:57 -05:00
2019-02-05 16:50:21 +01:00
2019-02-06 15:54:12 +01:00
2019-02-20 09:41:23 +01:00
2019-02-05 16:50:21 +01:00
2019-02-05 10:58:33 -05:00
2019-01-11 15:46:55 +01:00
2019-02-04 11:04:49 +00:00
2019-01-14 13:45:40 +00:00
2019-02-05 16:50:20 +01:00
2019-02-05 16:50:21 +01:00