Variable-length arrays and the max() mess
Variable-length arrays and the max() mess
Posted Mar 13, 2018 16:10 UTC (Tue) by mb (subscriber, #50428)In reply to: Variable-length arrays and the max() mess by epa
Parent article: Variable-length arrays and the max() mess
What if the allocation fails?
Posted Mar 13, 2018 17:29 UTC (Tue)
by BenHutchings (subscriber, #37955)
[Link]
Variable-length arrays and the max() mess
Then BUG(). Which is certainly no worse than the result of a stack allocation failure (i.e. stack overflow).