]> git.proxmox.com Git - mirror_qemu.git/commit
tests/unit/test-vmstate: Avoid dynamic stack allocation
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 19 Aug 2022 15:39:31 +0000 (16:39 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Sep 2022 15:38:28 +0000 (16:38 +0100)
commit972d325a8dc855aa3817d0df9e09fd556a0449f7
treebde61cffa182bc08a7f6e182db14cee9cb0507f5
parent2d5f4a713d27f2b218b0c5abfa9833953da108d9
tests/unit/test-vmstate: Avoid dynamic stack allocation

Use autofree heap allocation instead of variable-length
array on the stack.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220819153931.3147384-12-peter.maydell@linaro.org
tests/unit/test-vmstate.c