Files
qemu/hw/display
Peter Maydell e757db25aa hw/display/bcm2835_fb.c: Initialize all fields of struct
In bcm2835_fb_mbox_push(), Coverity complains (CID 1429989) that we
pass a pointer to a local struct to another function without
initializing all its fields.  This is a real bug:
bcm2835_fb_reconfigure() copies the whole of our new BCM2385FBConfig
struct into s->config, so any fields we don't initialize will corrupt
the state of the device.

Copy the two fields which we don't want to update (pixo and alpha)
from the existing config so we don't accidentally change them.

Fixes: cfb7ba9838
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200628195436.27582-1-peter.maydell@linaro.org
2020-07-03 16:59:43 +01:00
..
2019-08-22 10:04:20 +02:00
2020-06-30 22:54:24 +02:00
2017-03-27 12:14:45 +02:00
2019-12-16 13:04:46 +01:00
2020-01-27 10:49:51 -08:00
2019-08-16 13:31:52 +02:00
2016-01-29 15:07:24 +00:00
2020-02-13 08:31:40 +01:00
2020-05-18 15:43:51 +02:00
2019-08-16 13:31:52 +02:00
2017-04-24 12:32:12 +01:00
2020-06-30 22:50:04 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2020-05-15 07:08:52 +02:00
2020-05-15 07:08:52 +02:00
2019-08-16 13:31:52 +02:00
2020-06-15 22:05:28 +02:00