xemu/hw/display
Peter Maydell 74e2e59b8d hw/display/bcm2835_fb: Silence Coverity warning about multiply overflow
Coverity complains (CID 1395628) that the multiply in the calculation
of the framebuffer base is performed as 32x32 but then used in a
context that takes a 64-bit hwaddr. This can't actually ever
overflow the 32-bit result, because of the constraints placed on
the s->config values in bcm2835_fb_validate_config(). But we
can placate Coverity anyway, by explicitly casting one of the
inputs to a hwaddr, so the whole expression is calculated with
64-bit arithmetic.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20181005133012.26490-1-peter.maydell@linaro.org
2018-10-08 14:55:05 +01:00
..
2018-07-02 19:07:19 +01:00
2017-03-27 12:14:45 +02:00
2018-10-05 11:26:56 +02:00
2018-09-27 08:07:51 +02:00
2018-08-30 13:24:13 +02:00
2018-08-30 13:24:13 +02:00
2018-08-30 13:24:13 +02:00
2018-09-27 08:07:51 +02:00
2016-01-29 15:07:24 +00:00
2018-07-02 17:21:52 +02:00
2017-04-24 12:32:12 +01:00
2016-09-22 18:13:08 +01:00
2018-08-30 13:24:13 +02:00
2018-09-27 08:07:51 +02:00
2018-08-30 13:24:13 +02:00
2018-09-03 08:31:57 +02:00
2018-09-27 08:07:51 +02:00
2018-08-30 13:24:13 +02:00
2018-08-30 13:24:13 +02:00