top | item 32345415

(no title)

ynfnehf | 3 years ago

This usage of VLAs is once again mandatory for compilers to support, since C23. From Wikipedia: "Variably-modified types (but not VLAs which are automatic variables allocated on the stack) become a mandatory feature".

discuss

order

pjmlp|3 years ago

Oh well...

ynfnehf|3 years ago

At least it is still optional to allow for stack allocated VLAs. Which is the attack vector you mentioned.

legalcorrection|3 years ago

Tell me, what’s wrong with variably modified types specifically?