qemu-e2k/hw/block
Philippe Mathieu-Daudé 07c13a7172 hw/block/pflash_cfi: fix off-by-one error
ASAN reported:

    hw/block/pflash_cfi02.c:245:33: runtime error: index 82 out of bounds for type 'uint8_t [82]'

Since the 'cfi_len' member is not used, remove it to keep the code safer.

Cc: qemu-stable@nongnu.org
Reported-by: AddressSanitizer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2018-04-10 16:33:08 +02:00
..
dataplane virtio-blk: fix race between .ioeventfd_stop() and vq handler 2018-03-08 17:38:51 +00:00
block.c Include less of the generated modular QAPI headers 2018-03-02 13:45:50 -06:00
cdrom.c
ecc.c
fdc.c fdc: Exit if ISA controller does not support DMA 2018-03-26 14:37:13 +02:00
hd-geometry.c Include less of the generated modular QAPI headers 2018-03-02 13:45:50 -06:00
m25p80.c
Makefile.objs
nand.c
nvme.c pci: removed the is_express field since a uniform interface was inserted 2018-02-08 21:06:41 +02:00
nvme.h
onenand.c
pflash_cfi01.c hw/block/pflash_cfi: fix off-by-one error 2018-04-10 16:33:08 +02:00
pflash_cfi02.c hw/block/pflash_cfi: fix off-by-one error 2018-04-10 16:33:08 +02:00
tc58128.c
trace-events trace: avoid SystemTap "char const" warnings 2018-02-19 13:09:44 +00:00
vhost-user-blk.c vhost-user-blk: set config ops before vhost-user init 2018-04-09 17:35:45 +03:00
virtio-blk.c
xen_blkif.h
xen_disk.c