On 6/23/2024 11:45 AM, Minwoo Im wrote:
This patch fixes two points reported in coverity scan report [1]. Check the MMIO access address with (addr + size), not just with the start offset addr to make sure that the requested memory access not to exceed the actual register region. We also updated (uint8_t *) to (uint32_t *) to represent we are accessing the MMIO registers by dword-sized only. [1] https://lore.kernel.org/qemu-devel/cafeaca82l-wznhmw0x+dr40bhm-evq2zh4dg4pdqop4xxdp...@mail.gmail.com/ Cc: Jeuk Kim <jeuk20....@gmail.com> Reported-by: Peter Maydell <peter.mayd...@linaro.org> Signed-off-by: Minwoo Im <minwoo.im....@gmail.com>
Thank you for the patch. Reviewed-by: Jeuk Kim <jeuk20....@samsung.com>