You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/cxl
Jonathan Cameron c5e36a5a6a hw/cxl: Check for zero length features in cmd_features_set_feature()
Zero length data for features doesn't make any sense so exclude that case
early. This fixes the undefined behavior reported by coverity for a zero
length memcpy().

Resolves CID 1564900 and 1564901

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20241108175814.1248278-1-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 week ago
..
Kconfig
cxl-cdat.c hw/cxl/cxl-cdat: Make cxl_doe_cdat_init() return boolean 7 months ago
cxl-component-utils.c hw/pci-bridge/pxb-cxl: Drop RAS capability from host bridge. 9 months ago
cxl-device-utils.c hw/cxl: Standardize all references on CXL r3.1 and minor updates 10 months ago
cxl-events.c hw/cxl/events: discard all event records during sanitation 5 months ago
cxl-host-stubs.c pci/pci_expander_bridge: For CXL HB delay the HB register memory region setup. 3 years ago
cxl-host.c hw/cxl/cxl-host: Fix segmentation fault when getting cxl-fmw property 5 months ago
cxl-mailbox-utils.c hw/cxl: Check for zero length features in cmd_features_set_feature() 1 week ago
meson.build meson: remove CONFIG_ALL 11 months ago
switch-mailbox-cci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago