mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
59e5ba50ea
Calling Fdt::from_blob with a byte slice shorter than FDT header size currently panics. This changes makes from_blob return an error instead. It also ensures other sizes and offsets in the header make sense, before continuing to parse other FDT structures. Bug: b/296796644 Test: cd cros_fdt && cargo test Change-Id: I37ae3cc360fd3cb88ed670320ab5536ac1bd9691 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5116143 Commit-Queue: Jakob Vukalović <jakobvukalovic@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
test-files | ||
Cargo.toml |