ArmPkg/NorFlashDxe : Fix the check of flash addresses
authorRonald Cron <ronald.cron@arm.com>
Fri, 23 Jan 2015 16:09:07 +0000 (16:09 +0000)
committeroliviermartin <oliviermartin@Edk2>
Fri, 23 Jan 2015 16:09:07 +0000 (16:09 +0000)
commitac83357a4311e008b229a8db43d2f1726cfe326d
tree507a139b0f87d5d8a98750530c2a22af4f9311dc
parent2596e61a9b6a18c315f985bcb41cce3d498f9ad0
ArmPkg/NorFlashDxe : Fix the check of flash addresses

Fix the check to prevent any reading past the end of the nor flash.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16655 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c