AlexChen
18520fa465
hw/display/exynos4210_fimd: Fix potential NULL pointer dereference
...
In exynos4210_fimd_update(), the pointer s is dereferinced before
being check if it is valid, which may lead to NULL pointer dereference.
So move the assignment to global_width after checking that the s is valid.
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 5F9F8D88.9030102@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-11-02 16:52:17 +00:00
..
2020-10-19 14:25:40 +02:00
2020-10-21 11:36:19 +02:00
2020-09-25 16:52:08 -07:00
2020-11-02 16:52:16 +00:00
2020-09-18 14:12:32 -04:00
2020-10-30 06:48:53 -04:00
2020-10-27 11:10:44 +00:00
2020-10-27 11:15:31 +00:00
2020-09-22 16:48:29 -04:00
2020-09-25 16:52:08 -07:00
2020-11-02 16:52:17 +00:00
2020-10-28 07:59:25 +00:00
2020-10-27 11:10:32 +00:00
2020-09-18 14:12:32 -04:00
2020-09-23 16:07:44 +01:00
2020-10-20 16:12:00 +01:00
2020-11-01 14:02:19 +00:00
2020-10-27 10:39:06 -04:00
2020-09-18 14:12:32 -04:00
2020-10-22 12:00:22 -07:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-29 02:15:24 -04:00
2020-09-18 14:12:32 -04:00
2020-10-28 01:08:53 +11:00
2020-09-25 16:52:08 -07:00
2020-10-17 13:59:40 +02:00
2020-10-29 11:40:04 +00:00
2020-09-25 16:52:08 -07:00
2020-10-28 01:08:53 +11:00
2020-09-25 16:52:08 -07:00
2020-10-12 11:50:20 -04:00
2020-10-30 06:48:53 -04:00
2020-09-18 14:12:32 -04:00
2020-10-28 07:59:26 +00:00
2020-10-28 01:08:53 +11:00
2020-09-23 16:07:44 +01:00
2020-10-22 12:00:22 -07:00
2020-10-18 16:21:42 +01:00
2020-11-01 12:30:52 -07:00
2020-10-12 11:50:51 -04:00
2020-10-26 09:23:47 +01:00
2020-09-18 14:12:32 -04:00
2020-09-29 02:15:24 -04:00
2020-10-28 07:59:25 +00:00
2020-10-28 07:59:25 +00:00
2020-10-08 15:24:32 +01:00
2020-10-29 11:40:04 +00:00
2020-09-18 14:12:32 -04:00
2020-10-27 11:10:21 +00:00
2020-11-01 12:30:52 -07:00
2020-10-30 06:48:53 -04:00
2020-10-27 11:10:44 +00:00
2020-10-19 16:32:41 +01:00
2020-09-25 16:52:08 -07:00