aboutsummaryrefslogtreecommitdiff
path: root/include/hw/core
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-11-01 13:39:13 +0000
committerMichael S. Tsirkin <mst@redhat.com>2024-11-04 16:03:25 -0500
commita3de73c2a835efc30851f9e810e0cd355e1cd0cf (patch)
tree4b897e380347e142728c68f58c94f8b430623cbb /include/hw/core
parentf9f0fa2438c6934aa76b06e9a6cef283176ceb8d (diff)
downloadqemu-a3de73c2a835efc30851f9e810e0cd355e1cd0cf.zip
qemu-a3de73c2a835efc30851f9e810e0cd355e1cd0cf.tar.gz
qemu-a3de73c2a835efc30851f9e810e0cd355e1cd0cf.tar.bz2
hw/cxl: Avoid accesses beyond the end of cel_log.
Add a check that the requested offset + length does not go beyond the end of the cel_log. Whilst the cci->cel_log is large enough to include all possible CEL entries, the guest might still ask for entries beyond the end of it. Move the comment to this new check rather than before the check on the type of log requested. Reported-by: Esifiel <esifiel@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20241101133917.27634-7-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/core')
0 files changed, 0 insertions, 0 deletions