[libdvdcss-devel] [PATCH] Check the return values of write() calls.

Ivan Kalvachev ikalvachev at gmail.com
Thu Mar 14 02:12:22 CET 2013


On 3/13/13, Diego Elio Pettenò <flameeyes at flameeyes.eu> wrote:
> That is not a VLA: the len variable is all precalculated. You could
> hint it better by declaring it a 'static const' .

For the compiler it is still VLA, because you provide the size with a
variable, even if that variable holds a constant value.

Libav configure adds -Werror=vla and it would cause error at this code.


More information about the libdvdcss-devel mailing list