]> Git Repo - qemu.git/commit
highbank: validate register offset before access
authorPrasad J Pandit <[email protected]>
Mon, 13 Nov 2017 13:55:24 +0000 (13:55 +0000)
committerPeter Maydell <[email protected]>
Mon, 13 Nov 2017 13:55:24 +0000 (13:55 +0000)
commitc5c752af8cddad3e4e51acef40a46db998638144
tree8cba183ec03c10a6d07a73dbfbdc08c767c708f9
parent5ca66278c859bb1ded243755aeead2be6992ce73
highbank: validate register offset before access

An 'offset' parameter sent to highbank register r/w functions
could be greater than number(NUM_REGS=0x200) of hb registers,
leading to an OOB access issue. Add check to avoid it.

Reported-by: Moguofang (Dennis mo) <[email protected]>
Signed-off-by: Prasad J Pandit <[email protected]>
Message-id: 20171113062658[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/arm/highbank.c
This page took 0.02495 seconds and 4 git commands to generate.