plat/arm: Fix incorrect bounds check in ARM_CASSERT_MMAP
The bounds check in ARM_CASSERT_MMAP does not take into account the
array sentinel in plat_arm_mmap. This commit fixes this, and adds an
additional check to ensure the number of entries in the array is
within the bounds of PLAT_ARM_MMAP_ENTRIES.

Change-Id: Ie6df10c0aa0890d62826bc3224ad7b3e36fd53e2
Signed-off-by: Chris Kay <chris.kay@arm.com>
1 parent 3450fd6 commit 053b4f92cbfa627418441daf5f9b1b89739c2fd1
@Chris Kay Chris Kay authored on 9 May 2018
Showing 1 changed file
View
include/plat/arm/common/plat_arm.h