Check the length of data written by the device is consistent with the size of the buffers to avoid out-of-bounds memory accesses in case values aren't consistent. Signed-off-by: Andrew Scull <ascull@google.com> Cc: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| virtio-uclass.c | ||
| virtio_blk.c | ||
| virtio_blk.h | ||
| virtio_mmio.c | ||
| virtio_mmio.h | ||
| virtio_net.c | ||
| virtio_net.h | ||
| virtio_pci.h | ||
| virtio_pci_legacy.c | ||
| virtio_pci_modern.c | ||
| virtio_ring.c | ||
| virtio_rng.c | ||
| virtio_sandbox.c | ||