-arrays-vla" id="eliminating-variable-length-arrays-vla">Eliminating Variable-length Arrays (VLA)</a></h2>
<p>VLA allows programmers to specify the length of an array 
at runtime: 
e.g., using a variable instead of a constant 
for the array size.
This makes it easier to write certain types of programming logics 
such as packet/buffer handling or string manipulation, 
but has two critical problems, 
namely security and performance. </p>
<pre><code class="language-c">void test_vla(int i) {
  long buf[i];

  /