Peter Maydell c4cf68198e net/dump: Avoid variable length array
Use a g_autofree heap allocation instead of a variable length
array in dump_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
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