]> git.dujemihanovic.xyz Git - u-boot.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)
commitd036104a02995efe416dd5ada503408ae37b56a5
tree7967ae792497f0618b8ec3e2c22a0721cbcdae29
parent43937a4f5e411b3a82014fe0fa78ef4de90b11c2
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]