Peter Maydell 6d7a53e9f1 net/tap: Avoid variable-length array
Use a heap allocation instead of a variable length array in
tap_receive_iov().

The codebase has very few VLAs, and if we can get rid of them all we
can make the compiler error on new additions.  This is a defensive
measure against security bugs where an on-stack dynamic allocation
isn't correctly size-checked (e.g.  CVE-2021-3527).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2023-09-18 14:36:13 +08:00
..
2023-09-08 13:08:52 +03:00
2023-09-18 14:36:13 +08:00
2023-09-08 13:08:52 +03:00
2023-09-18 14:36:13 +08:00
2021-03-15 16:41:22 +08:00
2023-07-07 16:35:12 +08:00
2023-09-18 14:36:13 +08:00
2023-09-18 14:36:13 +08:00
2023-09-18 14:36:13 +08:00
2023-09-18 14:36:13 +08:00
2023-09-18 14:36:13 +08:00
2023-09-18 14:36:13 +08:00
2016-02-04 17:41:30 +00:00