mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Split the data length check into two conditions: - reject descriptors shorter than one virtio_blk_discard_write_zeroes segment, and - reject payloads exceeding MAX_DISCARD_WRITE_ZEROES_SEG segments Previously only the minimum length was checked and extra segments were silently dropped. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>