mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
set_config() split the config slice at `offset` and copy_from_slice'd the entire suffix, which asserts src.len() == self.len(). This panics if the guest issues a write shorter than `config_len - offset`. Signed-off-by: Dylan Reid <dgreid@fb.com>