mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
c30a6ac4ea
Previously this function will consume 24 bytes from event socket and try to convert the bytes into virtio_input_event (8 bytes) using DataInit::from_slice(). from_slice() guards size mismatched conversion and will always return None and fall into Err branch. Seems related to crrev/c/2034046 TEST=CQ, input still work running a debian desktop vm Change-Id: Ib82095fed6ec4591ba170a6a52fe47a61d33e013 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4357923 Reviewed-by: Noah Gold <nkgold@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Zihan Chen <zihanchen@google.com> |
||
---|---|---|
.. | ||
examples | ||
protocol | ||
src | ||
build.rs | ||
Cargo.toml |