diff options
author | Philippe Mathieu-Daudé | 2021-03-10 19:31:21 +0100 |
---|---|---|
committer | Jason Wang | 2021-03-22 10:34:31 +0100 |
commit | ef763586c943815eb0836c54c207ce8572e176a7 (patch) | |
tree | e2a40494d3b661819f91b63e92787728a1ce4198 /include/qemu-common.h | |
parent | net/eth: Check size earlier in _eth_get_rss_ex_dst_addr() (diff) | |
download | qemu-ef763586c943815eb0836c54c207ce8572e176a7.tar.gz qemu-ef763586c943815eb0836c54c207ce8572e176a7.tar.xz qemu-ef763586c943815eb0836c54c207ce8572e176a7.zip |
net/eth: Check iovec has enough data earlier
We want to check fields from ip6_ext_hdr_routing structure
and if correct read the full in6_address. Let's directly check
if our iovec contains enough data for everything, else return
early.
Suggested-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/qemu-common.h')
0 files changed, 0 insertions, 0 deletions