Re: [PATCH 1/2] tests/qtest/xlnx-versal-trng-test.c: Drop use of variable length array

2024-01-27 Thread Zhao Liu
On Thu, Jan 25, 2024 at 05:32:10PM +, Peter Maydell wrote: > Date: Thu, 25 Jan 2024 17:32:10 + > From: Peter Maydell > Subject: [PATCH 1/2] tests/qtest/xlnx-versal-trng-test.c: Drop use of > variable length array > X-Mailer: git-send-email 2.34.1 > > This test progr

Re: [PATCH 1/2] tests/qtest/xlnx-versal-trng-test.c: Drop use of variable length array

2024-01-25 Thread Thomas Huth
On 25/01/2024 18.32, Peter Maydell wrote: This test program is the last use of any variable length array in the codebase. If we can get rid of all uses of VLAs we can make the compiler error on new additions. This is a defensive measure against security bugs where an on-stack dynamic allocation

[PATCH 1/2] tests/qtest/xlnx-versal-trng-test.c: Drop use of variable length array

2024-01-25 Thread Peter Maydell
This test program is the last use of any variable length array in the codebase. If we can get rid of all uses of VLAs 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-202