qemu-e2k/hw/net/rocker
Peter Maydell 1257065783 hw/net/rocker: Avoid variable length array
Replace an on-stack variable length array in of_dpa_ig() with
a g_autofree heap allocation.

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
..
qmp-norocker.c rocker: Tweak stubbed out monitor commands' error messages 2023-02-23 14:10:17 +01:00
rocker_desc.c bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx 2023-01-18 11:14:34 +01:00
rocker_desc.h
rocker_fp.c rocker: Revamp fp_port_get_info 2020-12-19 10:14:52 +01:00
rocker_fp.h rocker: Revamp fp_port_get_info 2020-12-19 10:14:52 +01:00
rocker_hw.h
rocker_of_dpa.c hw/net/rocker: Avoid variable length array 2023-09-18 14:36:13 +08:00
rocker_of_dpa.h
rocker_tlv.h
rocker_world.c
rocker_world.h
rocker-hmp-cmds.c rocker: Move HMP commands from monitor to hw/net/rocker/ 2023-02-04 07:56:54 +01:00
rocker.c bulk: Rename TARGET_FMT_plx -> HWADDR_FMT_plx 2023-01-18 11:14:34 +01:00
rocker.h Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00