]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ssi/xilinx_spips: Avoid variable length array
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:35:57 +0000 (17:35 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:35:57 +0000 (17:35 +0100)
commitaa64cfaeb4ad0e67ccb54fa20511d7a36db9d833
tree27e45692364d6a7b2507353b453933637ff23ec4
parentc637044120705004b792ecf29e6b4be41e20c4c8
hw/ssi/xilinx_spips: Avoid variable length array

In the stripe8() function we use a variable length array; however
we know that the maximum length required is MAX_NUM_BUSSES. Use
a fixed-length array and an assert instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20190328152635.2794-1-peter.maydell@linaro.org
hw/ssi/xilinx_spips.c