]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
ns_descs: prevent buffer overrun and memory corruption
authorMaurizio Lombardi <mlombard@redhat.com>
Fri, 6 Dec 2024 13:17:06 +0000 (14:17 +0100)
committerDaniel Wagner <wagi@monom.org>
Fri, 6 Dec 2024 13:51:59 +0000 (14:51 +0100)
commit22948efa3977c9c96aa3ccf6e7e7d341d48971bf
tree8b2926668c0258a128594bfe57643abdfb827805
parent4f82fd27eabc7de7208653e52a0323b2084ebe33
ns_descs: prevent buffer overrun and memory corruption

nsdescs should point to an allocated memory of size
NVME_IDENTIFY_DATA_SIZE bytes, not "sizeof(*void)" bytes.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
nvme.c