Prasad J Pandit c5c752af8c 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>
2017-11-13 13:55:24 +00:00
..
2016-10-04 13:28:07 +01:00
2017-08-02 18:30:13 -03:00
2017-10-27 16:03:54 +02:00
2017-11-05 14:52:10 +01:00
2017-10-15 05:54:40 +03:00
2016-01-29 15:07:25 +00:00
2017-09-27 11:35:59 +01:00
2017-11-05 14:52:10 +01:00
2017-08-30 18:23:25 +02:00