Re:The Linux Kernel Is Now VLA (Variable-Length Array) Free
by agumonkey on Monday October 29, 2018 @08:56AM
(#18327081)
what do they do to avoid it ? static analysis ? runtime layout tricks ?
[ Parent
| on HN ]
Re:The Linux Kernel Is Now VLA (Variable-Length Array) Free
by pjmlp on Monday October 29, 2018 @10:56AM
(#18327989)
With something that standard C keeps ignoring, bounds checking.
If the requested amount if bigger than the stack size defined at compilation time, an exception is thrown.
While C just overwrites the stack.