diff options
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-11-01 13:39:13 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2024-11-04 16:03:25 -0500 |
| commit | a3de73c2a835efc30851f9e810e0cd355e1cd0cf (patch) | |
| tree | 4b897e380347e142728c68f58c94f8b430623cbb /rust/qemu-api-macros/src | |
| parent | f9f0fa2438c6934aa76b06e9a6cef283176ceb8d (diff) | |
| download | focaccia-qemu-a3de73c2a835efc30851f9e810e0cd355e1cd0cf.tar.gz focaccia-qemu-a3de73c2a835efc30851f9e810e0cd355e1cd0cf.zip | |
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 'rust/qemu-api-macros/src')
0 files changed, 0 insertions, 0 deletions