aboutsummaryrefslogtreecommitdiff
path: root/include/hw/core
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-11-01 13:39:12 +0000
committerMichael S. Tsirkin <mst@redhat.com>2024-11-04 16:03:25 -0500
commitf9f0fa2438c6934aa76b06e9a6cef283176ceb8d (patch)
tree66fd3dc2d2bb14fdef577b63c0f705b303699603 /include/hw/core
parenta3995360aeec62902f045142840c1fd334e9725f (diff)
downloadqemu-f9f0fa2438c6934aa76b06e9a6cef283176ceb8d.zip
qemu-f9f0fa2438c6934aa76b06e9a6cef283176ceb8d.tar.gz
qemu-f9f0fa2438c6934aa76b06e9a6cef283176ceb8d.tar.bz2
hw/cxl: Check the length of data requested fits in get_log()
Checking offset + length is of no relevance when verifying the CEL data will fit in the mailbox payload. Only the length is is relevant. Note that this removes a potential overflow. Reported-by: Esifiel <esifiel@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20241101133917.27634-6-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