diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2014-11-24 10:47:45 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-12-10 11:14:44 +0300 |
commit | 1a71992376792a0d11ea27688bd1a21cdffd1826 (patch) | |
tree | 5bcaca48666429b543e109278b06dde7414d6e00 /hmp-commands.hx | |
parent | b5369dd841b55aa24dd107223e0a08d8624d1b19 (diff) |
target-s390x: fix possible out of bounds read
Array index starts at 0, so the valid index of ext_queue array,
io_queue array, mchk_queue array should be MAX_EXT_QUEUE - 1,
MAX_IO_QUEUE - 1, MAX_MCHK_QUEUE - 1.
The original checks missed the invalid bound value, which will lead
possible out of bounds read in the follow codes.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hmp-commands.hx')
0 files changed, 0 insertions, 0 deletions