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
..
2016-01-29 15:07:23 +00:00
2016-05-19 16:42:29 +02:00
2016-06-14 15:59:14 +01:00
2018-10-02 19:09:03 +02:00
2017-06-02 05:54:43 +01:00
2019-01-30 10:16:00 +01:00
2017-12-18 17:07:02 +03:00
2016-05-19 16:42:29 +02:00
2016-06-14 15:59:14 +01:00
2018-11-12 11:26:02 +00:00
2018-06-08 13:15:32 +01:00
2018-06-01 14:15:10 +02:00
2017-06-02 05:54:43 +01:00
2018-12-11 18:28:46 +01:00
2018-12-11 18:28:46 +01:00
2016-05-19 16:42:29 +02:00