diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2019-10-15 10:06:09 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-17 23:22:08 +0000 |
commit | cfb7db44eb9e5a0bca9a22bfb985252ef74ab251 (patch) | |
tree | abd2de195bd35c1e1394816308e632171e34dd15 /usb_util | |
parent | 92568c9c27c68382f7b9145513050fda3109c920 (diff) | |
download | crosvm-cfb7db44eb9e5a0bca9a22bfb985252ef74ab251.tar crosvm-cfb7db44eb9e5a0bca9a22bfb985252ef74ab251.tar.gz crosvm-cfb7db44eb9e5a0bca9a22bfb985252ef74ab251.tar.bz2 crosvm-cfb7db44eb9e5a0bca9a22bfb985252ef74ab251.tar.lz crosvm-cfb7db44eb9e5a0bca9a22bfb985252ef74ab251.tar.xz crosvm-cfb7db44eb9e5a0bca9a22bfb985252ef74ab251.tar.zst crosvm-cfb7db44eb9e5a0bca9a22bfb985252ef74ab251.zip |
fuzz: add USB descriptor parsing fuzzer
The new USB descriptor parsing code is a nice candidate for a fuzzer, since it takes an arbitrary stream of bytes as input and parses it. BUG=chromium:987833 TEST=`USE='asan fuzzer' emerge-nami crosvm` Cq-Depend: chromium:1863465 Change-Id: I3bbdbf081e9a9dd590c781467f8bd44fa1dcab64 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1862117 Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'usb_util')
-rw-r--r-- | usb_util/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usb_util/src/lib.rs b/usb_util/src/lib.rs index 2574d90..d793f62 100644 --- a/usb_util/src/lib.rs +++ b/usb_util/src/lib.rs @@ -7,7 +7,9 @@ mod device; mod error; mod types; -pub use self::descriptor::{ConfigDescriptorTree, DeviceDescriptorTree, InterfaceDescriptorTree}; +pub use self::descriptor::{ + parse_usbfs_descriptors, ConfigDescriptorTree, DeviceDescriptorTree, InterfaceDescriptorTree, +}; pub use self::device::{Device, Transfer, TransferStatus}; pub use self::error::{Error, Result}; pub use self::types::{ |