summaryrefslogtreecommitdiffstats
path: root/hw/arm/virt.c
diff options
context:
space:
mode:
authorKlaus Jensen2021-04-07 07:16:14 +0200
committerKlaus Jensen2021-04-07 10:48:33 +0200
commit7645f21f409b67eb9aad9feef6283c2e186e3703 (patch)
tree4871d95b8ae7311e676001a74bb8f55abe1bf688 /hw/arm/virt.c
parenthw/block/nvme: fix assert crash in nvme_subsys_ns (diff)
downloadqemu-7645f21f409b67eb9aad9feef6283c2e186e3703.tar.gz
qemu-7645f21f409b67eb9aad9feef6283c2e186e3703.tar.xz
qemu-7645f21f409b67eb9aad9feef6283c2e186e3703.zip
hw/block/nvme: fix out-of-bounds read in nvme_subsys_ctrl
nvme_subsys_ctrl() is used in contexts where the given controller identifier is from an untrusted source. Like its friends nvme_ns() and nvme_subsys_ns(), nvme_subsys_ctrl() should just return NULL if an invalid identifier is given. Fixes: 645ce1a70cb6 ("hw/block/nvme: support namespace attachment command") Cc: Minwoo Im <minwoo.im.dev@gmail.com> Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Diffstat (limited to 'hw/arm/virt.c')
0 files changed, 0 insertions, 0 deletions