]> git.baikalelectronics.ru Git - uboot.git/commit
test: dm: virtio_rng: Test virtio-rng with faked device
authorAndrew Scull <ascull@google.com>
Mon, 16 May 2022 10:41:40 +0000 (10:41 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 13:24:04 +0000 (09:24 -0400)
commit0987308be0ee4b266f18243f6efe6888db14d8eb
tree7967ae792497f0618b8ec3e2c22a0721cbcdae29
parent72ac68bfb65965d53de9178a59d266a34665cf33
test: dm: virtio_rng: Test virtio-rng with faked device

Add a regression test for virtio-rng reading beyond the end of its
buffer if the virtio device provides an invalid length.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/Makefile
test/dm/virtio_rng.c [new file with mode: 0644]