Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: 961d0171a6770d6c68ed9a2ba4c0cc607e141c03 https://github.com/OpenAMP/libmetal/commit/961d0171a6770d6c68ed9a2ba4c0cc607... Author: Iuliana Prodan iuliana.prodan@nxp.com Date: 2025-02-14 (Fri, 14 Feb 2025)
Changed paths: M lib/system/freertos/io.c M lib/system/generic/io.c
Log Message: ----------- io: fix buffer overflow in metal_sys_io_mem_map()
In metal_sys_io_mem_map() if the I/O region size is a multiple of (1<<page_shift) will result in a buffer overflow in the for loop.
Therefore, adjust loop termination condition to prevent accessing an out-of-bounds page.
Signed-off-by: Iuliana Prodan iuliana.prodan@nxp.com
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
openamp-rp@lists.openampproject.org