5 ms·
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 varia
by ynfnehf 4y 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".
- pjmlp 4y agoOh well...
- ynfnehf 4y agoAt least it is still optional to allow for stack allocated VLAs. Which is the attack vector you mentioned.
- legalcorrection 4y agoTell me, what’s wrong with variably modified types specifically?
- mananaysiempre 4y agoSizeof, which used to be one of the very few things you could blindly do to an arbitrary (potentially UB-provoking) expression, can now have side effects.