<p><pre><code>  If the allocated block is beyond
  the current stack limit, the  resulting  behavior  is  unde-
  fined.
</code></pre>
And you even quoted the part that hints at why alloca(3C) is so rarely used in practice: you get a pointer result, but you have no way of knowing if it&#x27;s actually safe to use it.