News for hackers. Stuff that matters.
Re:Stack size invisibility in C and the effects on "portabil... by OskarS on Tuesday September 28, 2021 @10:39AM (#28683342)
No, but that's a pretty weak argument not to have them: they're better than nothing. Not all code uses libraries. And if it was part of the C standard, libraries could use them as well: libraries could fail gracefully instead of blowing the stack. Many libraries already do this when malloc fails, after all.
Re:Stack size invisibility in C and the effects on "portabil... by saagarjha on Tuesday September 28, 2021 @08:51PM (#28689165)
I have yet to see a library that fails gracefully when malloc fails. Many claim to be able to do so, but usually keel over when actually presented with a failure.