fix(ppa): add checks for input to avoid any OOB access

This commit is contained in:
Song Ruo Jing
2026-07-24 15:43:03 +08:00
parent d7dff00514
commit f57f4ffa58
5 changed files with 49 additions and 21 deletions
@@ -84,6 +84,7 @@ extern "C" {
#define DMA2D_LL_CHANNEL_PERIPH_SEL_BIT_WIDTH (3)
#define DMA2D_LL_DESC_ALIGNMENT 8 // Descriptor must be aligned to 8 bytes
#define DMA2D_LL_DESC_2D_FIELD_MAX 0x3FFFU // 2D descriptor width/height/coordinate fields are 14-bit
///////////////////////////////////// Common /////////////////////////////////////////
/**