aboutsummaryrefslogtreecommitdiff
path: root/hw/nvme/ns.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-11-08 17:58:14 +0000
committerMichael S. Tsirkin <mst@redhat.com>2024-11-26 17:18:06 -0500
commitc5e36a5a6adbab7f6dc17d3bcb7b06660995cdc3 (patch)
tree210e8e8ff5460b630493296eaeaf1fe5bd802ec5 /hw/nvme/ns.c
parente50a24ead1c0b39673060aa90466ab8ef246297f (diff)
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>
Diffstat (limited to 'hw/nvme/ns.c')
0 files changed, 0 insertions, 0 deletions