[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] should we try to stop using variable length arrays?
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] should we try to stop using variable length arrays? |
Date: |
Mon, 11 Feb 2019 11:26:38 +0800 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Thu, Feb 07, 2019 at 07:30:59PM +0000, Peter Maydell wrote:
> Should we be looking to get rid of these and turn on the -Wvla
> warning? I know the Linux kernel has recently decided to do this
> (some rationale at the start of https://lwn.net/Articles/749064/).
I'm in favor of avoiding variable-length arrays just so reviewers don't
need to catch instances where the size comes from the untrusted guest.
Stefan
signature.asc
Description: PGP signature