Re: [PATCH V3] hw/display/exynos4210_fimd: Fix potential NULL pointer dereference

2020-11-02 Thread Peter Maydell
On Mon, 2 Nov 2020 at 10:13, AlexChen wrote: > > In exynos4210_fimd_update(), the pointer 's' is dereferenced before > checking it is valid, which may lead to NULL pointer dereference. > So move the assignment to global_width after checking 's' is valid. > > Reported-by: Euler Robot > Signed-off-

[PATCH V3] hw/display/exynos4210_fimd: Fix potential NULL pointer dereference

2020-11-02 Thread AlexChen
In exynos4210_fimd_update(), the pointer 's' is dereferenced before checking it is valid, which may lead to NULL pointer dereference. So move the assignment to global_width after checking 's' is valid. Reported-by: Euler Robot Signed-off-by: Alex Chen Reviewed-by: Philippe Mathieu-Daudé --- hw