by clark_dent · 6mo ago · 0 comments
Returning an error on inputs that are too long (for some definition of it) is the way to go.
Fix your inputs.
We agree that the program should exit early. I think we agree it should do it cleanly and intentionally. I'm adding the constraint that "crash" doesn't necessarily mean "cleanly and intentionally", especially when talking about a C program.