|
|
Subscribe / Log in / New account

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?


to post comments

Variable-length arrays and the max() mess

Posted Mar 13, 2018 17:29 UTC (Tue) by BenHutchings (subscriber, #37955) [Link]

Then BUG(). Which is certainly no worse than the result of a stack allocation failure (i.e. stack overflow).


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds