mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
d3c28cc3c1
The Windows version of IoBuf uses the WSABUF structure, which represents len as a 32-bit value. Previously, larger len values would be silently truncated; this change makes those conversions using try_into() instead. We have no easy way to report failure of this usize -> u32 conversion, so for now, just unwrap() to cause a panic if the length ever overflows so it will at least produce a crash report and be noticed. A possible future enhancement could be to make all relevant IoBuf and IoBufMut functions return Result<...> so the error could be propagated back to the caller. BUG=None TEST=tools/dev_container tools/presubmit Change-Id: I79270a7e8af01827ef0d1bafaa98c5d7f4b53b73 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4567110 Reviewed-by: Noah Gold <nkgold@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
audio_streams | ||
balloon_control | ||
data_model | ||
p9 | ||
sync | ||
chromeos_warning.md | ||
README.md |
Crosvm General Purpose Libraries
The crates in this folder are general purpose libraries used by other projects in ChromeOS as well.
To make them accessible independendly of crosvm, each of these crates is excluded from the crosvm workspace.