crosvm/gpu_display
Zihan Chen c30a6ac4ea gpu_display: Read only 8 bytes from socket for virtio_input_event
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>
2023-03-22 01:30:34 +00:00
..
examples Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00
protocol health-check: Add check for newline at ends of files 2022-08-18 00:17:04 +00:00
src gpu_display: Read only 8 bytes from socket for virtio_input_event 2023-03-22 01:30:34 +00:00
build.rs gpu_display: find wayland-scanner with which in build.rs 2023-02-27 21:18:21 +00:00
Cargo.toml gpu_display: find wayland-scanner with which in build.rs 2023-02-27 21:18:21 +00:00