mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
0a91c96437
This removes some unsafe code, improving the interface so that it cannot be misused (e.g. previously, different Vec<u8> instances could be passed to fdt functions that did not validate the contents). The new implementation also adds some extra error checking to catch invalid string values in all API entry points that accept strings, as well as out-of-order node nesting that would result in DTB data that did not conform to the spec. BUG=b:175729255 TEST=cargo test -p arch TEST=Boot Crostini on kevin (arm) TEST=diff old and new dts from `dtc -I fs -O dts /proc/device-tree` Change-Id: I567d562ed1b447aa0d282b68c71758edea13ffc0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2713569 Reviewed-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_skip | ||
Cargo.toml |