News for hackers. Stuff that matters.
Re:The Linux Kernel Is Now VLA (Variable-Length Array) Free by krzyk on Monday October 29, 2018 @07:30AM (#18326567)
Why? It has quite nice simple syntax. And all C newbies love it (doing malloc and then free is cumbersome, and not needed in simple cases).
Re:The Linux Kernel Is Now VLA (Variable-Length Array) Free by pjmlp on Monday October 29, 2018 @07:37AM (#18326607)
What about lack of bounds checking leaving the door open to security exploits, in the days where CVEs caused by C's use increase every month?!?

Hence why they were dropped in C11. Being an optional annex means that actually most C vendors won't bother.

Re:The Linux Kernel Is Now VLA (Variable-Length Array) Free by viraptor on Monday October 29, 2018 @04:19PM (#18330973)
Why is that different from heap allocations? They don't have automatic bounds checking either.
Re:The Linux Kernel Is Now VLA (Variable-Length Array) Free by pjmlp on Monday October 29, 2018 @04:40PM (#18331186)
Malloc does not corrupt the heap if it cannot accommodate the requested block size.