diff options
author | 2014-11-24 10:47:45 +0800 | |
---|---|---|
committer | 2014-12-10 11:14:44 +0300 | |
commit | 1a71992376792a0d11ea27688bd1a21cdffd1826 (patch) | |
tree | 5bcaca48666429b543e109278b06dde7414d6e00 /scripts/switch-timer-api | |
parent | qmp: fix typo in input-send-event examples (diff) | |
download | qemu-1a71992376792a0d11ea27688bd1a21cdffd1826.tar.xz qemu-1a71992376792a0d11ea27688bd1a21cdffd1826.zip |
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 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions