Skip to content

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

Wen Ping Teh requested to merge wp/coverity-cmn-cyprus into main

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 wenping.teh@arm.com

Merge request reports

Loading