Skip to content
Commit 9bf1bf6b authored by Wen Ping Teh's avatar Wen Ping Teh
Browse files

mod/cmn_cyprus: Add bounds checking for CMN-Cyprus modules



This patch adds input validation and bounds checking when accessing
child nodes and shared context tables. Specifically:
- Added fwk_assert() checks in cfgm_get_child_node() and
  mxp_get_child_node() to validate NULL pointers and ensure
  child_index is within bounds.
- Added runtime checks in cmn_cyprus_init_node_info() to ensure
  rnsam_entry and ldid values are within valid limits before
  accessing shared context tables.

Signed-off-by: Wen Ping Teh's avatarWen Ping Teh <wenping.teh@arm.com>
parent 9e53a866
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment