]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/Gic: Fix boundary checking bug
authorHeyi Guo <heyi.guo@linaro.org>
Sat, 23 Apr 2016 14:39:59 +0000 (22:39 +0800)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 25 Apr 2016 11:28:40 +0000 (13:28 +0200)
commit599f004b278f597dcfd02a56a72d9393b5f0c55a
tree8a792139a00f3373036da525a67d349e00ef59aa
parentfa8ee0ad6dbb22bb9962c3e32c091f29c2e0d5d8
ArmPkg/Gic: Fix boundary checking bug

mGicNumInterrupts is the total number of interrupts, so the interrupt
ID equal to mGicNumInterrupts is also invalid.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmPkg/Drivers/ArmGic/ArmGicCommonDxe.c
ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c
ArmPkg/Drivers/ArmGic/GicV3/ArmGicV3Dxe.c