mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
778c9f53dc
RX packet assembly checks descriptor capacity before the backend sees the packet. The backend then updates hdr.len before the header is written back. Validate that final length before committing the header, so we never tell the guest that more bytes were written than fit in the RX buffer. Assisted-by: Codex:GPT-5 Signed-off-by: Dylan Reid <dgreid@fb.com>