aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2017-11-13 13:55:24 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-11-13 13:55:24 +0000
commitc5c752af8cddad3e4e51acef40a46db998638144 (patch)
tree8cba183ec03c10a6d07a73dbfbdc08c767c708f9 /exec.c
parent5ca66278c859bb1ded243755aeead2be6992ce73 (diff)
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) <moguofang@huawei.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-id: 20171113062658.9697-1-ppandit@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions